[1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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 ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:27:07.550267"], ["updated_at", "2015-10-27 16:27:07.550267"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.570981"], ["updated_at", "2015-10-27 16:27:07.570981"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.575295"], ["updated_at", "2015-10-27 16:27:07.575295"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 22ms (Views: 9.9ms | ActiveRecord: 0.0ms) [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:27:07.618322"], ["updated_at", "2015-10-27 16:27:07.618322"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:07.620027"], ["updated_at", "2015-10-27 16:27:07.620027"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.621319"], ["updated_at", "2015-10-27 16:27:07.621319"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.4ms) Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.2ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:27:07.643613"], ["updated_at", "2015-10-27 16:27:07.643613"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.645303"], ["updated_at", "2015-10-27 16:27:07.645303"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.646785"], ["updated_at", "2015-10-27 16:27:07.646785"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.1ms) Completed 200 OK in 9ms (Views: 3.7ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:27:07.662560"], ["updated_at", "2015-10-27 16:27:07.662560"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:07.664167"], ["updated_at", "2015-10-27 16:27:07.664167"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.665555"], ["updated_at", "2015-10-27 16:27:07.665555"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.3ms) Completed 200 OK in 9ms (Views: 2.8ms | ActiveRecord: 0.5ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:27:07.683622"], ["updated_at", "2015-10-27 16:27:07.683622"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:07.685378"], ["updated_at", "2015-10-27 16:27:07.685378"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.686969"], ["updated_at", "2015-10-27 16:27:07.686969"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:27:07.842169"], ["updated_at", "2015-10-27 16:27:07.842169"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:07.843945"], ["updated_at", "2015-10-27 16:27:07.843945"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.845363"], ["updated_at", "2015-10-27 16:27:07.845363"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:27:07.850530"], ["updated_at", "2015-10-27 16:27:07.850530"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.852085"], ["updated_at", "2015-10-27 16:27:07.852085"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.853403"], ["updated_at", "2015-10-27 16:27:07.853403"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.5ms Sent mail to user7@sleede.com (7.0ms) Date: Tue, 27 Oct 2015 17:27:07 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fa5dbd67d9_128303fcdd603c1d41962@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
user7
message body
[1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:27:07.884442"], ["updated_at", "2015-10-27 16:27:07.884442"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.886472"], ["updated_at", "2015-10-27 16:27:07.886472"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.888271"], ["updated_at", "2015-10-27 16:27:07.888271"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user8@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:27:07 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fa5dbd9cca_128303fcdd603c1d4197e1@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:27:07.899144"], ["updated_at", "2015-10-27 16:27:07.899144"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.902769"], ["updated_at", "2015-10-27 16:27:07.902769"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.906616"], ["updated_at", "2015-10-27 16:27:07.906616"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:27:07 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fa5dbde19f_128303fcdd603c1d419833@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:27:07.913082"], ["updated_at", "2015-10-27 16:27:07.913082"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.914602"], ["updated_at", "2015-10-27 16:27:07.914602"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:07.915927"], ["updated_at", "2015-10-27 16:27:07.915927"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:27:07 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fa5dbe0517_128303fcdd603c1d4199e0@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:07.922038"], ["updated_at", "2015-10-27 16:27:07.922038"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:27:07.923776"], ["updated_at", "2015-10-27 16:27:07.923776"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:07.925429"], ["updated_at", "2015-10-27 16:27:07.925429"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.928041"], ["updated_at", "2015-10-27 16:27:07.928041"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:27:07.929519"], ["updated_at", "2015-10-27 16:27:07.929519"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.933854"], ["updated_at", "2015-10-27 16:27:07.933854"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:27:07.935610"], ["updated_at", "2015-10-27 16:27:07.935610"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.940827"], ["updated_at", "2015-10-27 16:27:07.940827"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:27:07.942499"], ["updated_at", "2015-10-27 16:27:07.942499"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.951245"], ["updated_at", "2015-10-27 16:27:07.951245"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:27:07.955796"], ["updated_at", "2015-10-27 16:27:07.955796"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:07.958263"], ["updated_at", "2015-10-27 16:27:07.958263"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.961537"], ["updated_at", "2015-10-27 16:27:07.961537"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:27:07.963139"], ["updated_at", "2015-10-27 16:27:07.963139"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:07.964793"], ["updated_at", "2015-10-27 16:27:07.964793"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user16@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:27:07 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562fa5dbec4f6_128303fcdd603c1d4200d6@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:07.971894"], ["updated_at", "2015-10-27 16:27:07.971894"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:27:07.973610"], ["updated_at", "2015-10-27 16:27:07.973610"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:07.975356"], ["updated_at", "2015-10-27 16:27:07.975356"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8b68d8b0-d643-4aed-805c-d5ee76c2f79f) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1 [ActiveJob] [1m[35mNotification Load (0.3ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] NotificationsMailer#send_mail_by: processed outbound mail in 7.0ms [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] Sent mail to user17@sleede.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] Date: Tue, 27 Oct 2015 17:27:08 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562fa5dc21a6_128303fcdd603c1d42016b@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [8b68d8b0-d643-4aed-805c-d5ee76c2f79f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.22ms [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:08.011847"], ["updated_at", "2015-10-27 16:27:08.011847"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 16:27:08.013599"], ["updated_at", "2015-10-27 16:27:08.013599"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:08.016722"], ["updated_at", "2015-10-27 16:27:08.016722"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 16:27:08.018263"], ["updated_at", "2015-10-27 16:27:08.018263"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:08.021528"], ["updated_at", "2015-10-27 16:27:08.021528"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 16:27:08.023223"], ["updated_at", "2015-10-27 16:27:08.023223"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:08.026507"], ["updated_at", "2015-10-27 16:27:08.026507"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 16:27:08.028126"], ["updated_at", "2015-10-27 16:27:08.028126"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:08.035252"], ["updated_at", "2015-10-27 16:27:08.035252"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:08.038985"], ["updated_at", "2015-10-27 16:27:08.038985"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:27:08.040507"], ["updated_at", "2015-10-27 16:27:08.040507"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:08.042125"], ["updated_at", "2015-10-27 16:27:08.042125"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.5ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[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 ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:27:35.836609"], ["updated_at", "2015-10-27 16:27:35.836609"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:35.851368"], ["updated_at", "2015-10-27 16:27:35.851368"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:35.855026"], ["updated_at", "2015-10-27 16:27:35.855026"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 20ms (Views: 9.6ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:27:35.900999"], ["updated_at", "2015-10-27 16:27:35.900999"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:35.903124"], ["updated_at", "2015-10-27 16:27:35.903124"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:35.904802"], ["updated_at", "2015-10-27 16:27:35.904802"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.5ms) Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:27:35.928509"], ["updated_at", "2015-10-27 16:27:35.928509"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:35.930354"], ["updated_at", "2015-10-27 16:27:35.930354"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:35.931922"], ["updated_at", "2015-10-27 16:27:35.931922"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.8ms) Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.2ms) [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:27:35.950104"], ["updated_at", "2015-10-27 16:27:35.950104"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:35.952349"], ["updated_at", "2015-10-27 16:27:35.952349"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:35.958207"], ["updated_at", "2015-10-27 16:27:35.958207"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.5ms) Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.3ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:27:35.973691"], ["updated_at", "2015-10-27 16:27:35.973691"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:35.975389"], ["updated_at", "2015-10-27 16:27:35.975389"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:35.976885"], ["updated_at", "2015-10-27 16:27:35.976885"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:27:36.136557"], ["updated_at", "2015-10-27 16:27:36.136557"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:36.138283"], ["updated_at", "2015-10-27 16:27:36.138283"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:36.139670"], ["updated_at", "2015-10-27 16:27:36.139670"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:27:36.144908"], ["updated_at", "2015-10-27 16:27:36.144908"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.146652"], ["updated_at", "2015-10-27 16:27:36.146652"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:36.148105"], ["updated_at", "2015-10-27 16:27:36.148105"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 19.7ms Sent mail to user7@sleede.com (6.6ms) Date: Tue, 27 Oct 2015 17:27:36 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fa5f82a93a_1283a3fd214c601d01856a@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:27:36.180559"], ["updated_at", "2015-10-27 16:27:36.180559"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.182539"], ["updated_at", "2015-10-27 16:27:36.182539"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:36.184376"], ["updated_at", "2015-10-27 16:27:36.184376"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (3.6ms) Date: Tue, 27 Oct 2015 17:27:36 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fa5f82ddf9_1283a3fd214c601d018688@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:27:36.198377"], ["updated_at", "2015-10-27 16:27:36.198377"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.200482"], ["updated_at", "2015-10-27 16:27:36.200482"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:36.201808"], ["updated_at", "2015-10-27 16:27:36.201808"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:27:36 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fa5f832198_1283a3fd214c601d0187f3@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:27:36.208539"], ["updated_at", "2015-10-27 16:27:36.208539"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.210049"], ["updated_at", "2015-10-27 16:27:36.210049"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:27:36.211303"], ["updated_at", "2015-10-27 16:27:36.211303"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:27:36 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fa5f83448b_1283a3fd214c601d01885@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:36.217141"], ["updated_at", "2015-10-27 16:27:36.217141"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:27:36.218704"], ["updated_at", "2015-10-27 16:27:36.218704"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:36.220342"], ["updated_at", "2015-10-27 16:27:36.220342"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.223069"], ["updated_at", "2015-10-27 16:27:36.223069"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:27:36.224603"], ["updated_at", "2015-10-27 16:27:36.224603"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.228563"], ["updated_at", "2015-10-27 16:27:36.228563"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:27:36.230429"], ["updated_at", "2015-10-27 16:27:36.230429"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.235304"], ["updated_at", "2015-10-27 16:27:36.235304"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:27:36.237429"], ["updated_at", "2015-10-27 16:27:36.237429"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.248332"], ["updated_at", "2015-10-27 16:27:36.248332"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:27:36.249934"], ["updated_at", "2015-10-27 16:27:36.249934"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:36.251447"], ["updated_at", "2015-10-27 16:27:36.251447"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.254714"], ["updated_at", "2015-10-27 16:27:36.254714"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:27:36.256127"], ["updated_at", "2015-10-27 16:27:36.256127"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:36.257933"], ["updated_at", "2015-10-27 16:27:36.257933"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user16@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:27:36 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562fa5f83fac4_1283a3fd214c601d018952@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.264705"], ["updated_at", "2015-10-27 16:27:36.264705"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:27:36.266180"], ["updated_at", "2015-10-27 16:27:36.266180"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:36.267656"], ["updated_at", "2015-10-27 16:27:36.267656"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f26f5f0f-3fc6-4321-b854-0e28c490139c) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1 [ActiveJob] [1m[35mNotification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] NotificationsMailer#send_mail_by: processed outbound mail in 6.4ms [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] Sent mail to user17@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] Date: Tue, 27 Oct 2015 17:27:36 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562fa5f848e02_1283a3fd214c601d019073@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [f26f5f0f-3fc6-4321-b854-0e28c490139c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.44ms [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:36.301420"], ["updated_at", "2015-10-27 16:27:36.301420"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 16:27:36.303126"], ["updated_at", "2015-10-27 16:27:36.303126"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:36.306094"], ["updated_at", "2015-10-27 16:27:36.306094"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 16:27:36.307597"], ["updated_at", "2015-10-27 16:27:36.307597"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:36.311055"], ["updated_at", "2015-10-27 16:27:36.311055"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 16:27:36.312518"], ["updated_at", "2015-10-27 16:27:36.312518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:27:36.315367"], ["updated_at", "2015-10-27 16:27:36.315367"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 16:27:36.316791"], ["updated_at", "2015-10-27 16:27:36.316791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:36.322246"], ["updated_at", "2015-10-27 16:27:36.322246"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:27:36.326272"], ["updated_at", "2015-10-27 16:27:36.326272"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:27:36.327792"], ["updated_at", "2015-10-27 16:27:36.327792"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:27:36.329374"], ["updated_at", "2015-10-27 16:27:36.329374"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.9ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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 ('20150216115438') [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:30:34.464258"], ["updated_at", "2015-10-27 16:30:34.464258"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.487625"], ["updated_at", "2015-10-27 16:30:34.487625"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.489946"], ["updated_at", "2015-10-27 16:30:34.489946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 8.7ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:30:34.528070"], ["updated_at", "2015-10-27 16:30:34.528070"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.529943"], ["updated_at", "2015-10-27 16:30:34.529943"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.531521"], ["updated_at", "2015-10-27 16:30:34.531521"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (11.9ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.2ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:30:34.552896"], ["updated_at", "2015-10-27 16:30:34.552896"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.554557"], ["updated_at", "2015-10-27 16:30:34.554557"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.555963"], ["updated_at", "2015-10-27 16:30:34.555963"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.0ms) Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:30:34.571309"], ["updated_at", "2015-10-27 16:30:34.571309"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.573169"], ["updated_at", "2015-10-27 16:30:34.573169"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.577800"], ["updated_at", "2015-10-27 16:30:34.577800"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.4ms) Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:30:34.595183"], ["updated_at", "2015-10-27 16:30:34.595183"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.596953"], ["updated_at", "2015-10-27 16:30:34.596953"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.598458"], ["updated_at", "2015-10-27 16:30:34.598458"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotification Load (0.3ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:30:34.747810"], ["updated_at", "2015-10-27 16:30:34.747810"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.749515"], ["updated_at", "2015-10-27 16:30:34.749515"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.750818"], ["updated_at", "2015-10-27 16:30:34.750818"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:30:34.755738"], ["updated_at", "2015-10-27 16:30:34.755738"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.757250"], ["updated_at", "2015-10-27 16:30:34.757250"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.758599"], ["updated_at", "2015-10-27 16:30:34.758599"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.3ms Sent mail to user7@sleede.com (6.3ms) Date: Tue, 27 Oct 2015 17:30:34 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fa6aabee9d_128633fe57a0601e0839ca@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:30:34.787250"], ["updated_at", "2015-10-27 16:30:34.787250"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.788992"], ["updated_at", "2015-10-27 16:30:34.788992"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.790889"], ["updated_at", "2015-10-27 16:30:34.790889"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user8@sleede.com (1.5ms) Date: Tue, 27 Oct 2015 17:30:34 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fa6aac21cc_128633fe57a0601e0840e5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:30:34.798413"], ["updated_at", "2015-10-27 16:30:34.798413"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.799894"], ["updated_at", "2015-10-27 16:30:34.799894"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.801146"], ["updated_at", "2015-10-27 16:30:34.801146"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms Sent mail to user9@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:30:34 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fa6aac4470_128633fe57a0601e084165@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:30:34.807853"], ["updated_at", "2015-10-27 16:30:34.807853"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:34.813857"], ["updated_at", "2015-10-27 16:30:34.813857"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:34.818514"], ["updated_at", "2015-10-27 16:30:34.818514"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user10@sleede.com (2.1ms) Date: Tue, 27 Oct 2015 17:30:34 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fa6aac8f94_128633fe57a0601e0842d3@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.826880"], ["updated_at", "2015-10-27 16:30:34.826880"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:30:34.828686"], ["updated_at", "2015-10-27 16:30:34.828686"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.831918"], ["updated_at", "2015-10-27 16:30:34.831918"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:30:34.833489"], ["updated_at", "2015-10-27 16:30:34.833489"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.836470"], ["updated_at", "2015-10-27 16:30:34.836470"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:30:34.838079"], ["updated_at", "2015-10-27 16:30:34.838079"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.841137"], ["updated_at", "2015-10-27 16:30:34.841137"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:30:34.842647"], ["updated_at", "2015-10-27 16:30:34.842647"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.845893"], ["updated_at", "2015-10-27 16:30:34.845893"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:30:34.847454"], ["updated_at", "2015-10-27 16:30:34.847454"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.851577"], ["updated_at", "2015-10-27 16:30:34.851577"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:30:34.853805"], ["updated_at", "2015-10-27 16:30:34.853805"]] [1m[36m (0.1ms)[0m [1mRELEASE 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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.860107"], ["updated_at", "2015-10-27 16:30:34.860107"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:30:34.868109"], ["updated_at", "2015-10-27 16:30:34.868109"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.872024"], ["updated_at", "2015-10-27 16:30:34.872024"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 16:30:34.873624"], ["updated_at", "2015-10-27 16:30:34.873624"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.876854"], ["updated_at", "2015-10-27 16:30:34.876854"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 16:30:34.878647"], ["updated_at", "2015-10-27 16:30:34.878647"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.882208"], ["updated_at", "2015-10-27 16:30:34.882208"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 16:30:34.883804"], ["updated_at", "2015-10-27 16:30:34.883804"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.887392"], ["updated_at", "2015-10-27 16:30:34.887392"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 16:30:34.888895"], ["updated_at", "2015-10-27 16:30:34.888895"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:34.892061"], ["updated_at", "2015-10-27 16:30:34.892061"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:30:34.893584"], ["updated_at", "2015-10-27 16:30:34.893584"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:30:49.091208"], ["updated_at", "2015-10-27 16:30:49.091208"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.102070"], ["updated_at", "2015-10-27 16:30:49.102070"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.104157"], ["updated_at", "2015-10-27 16:30:49.104157"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 21ms (Views: 7.0ms | ActiveRecord: 0.0ms) [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:30:49.148511"], ["updated_at", "2015-10-27 16:30:49.148511"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.150807"], ["updated_at", "2015-10-27 16:30:49.150807"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.152516"], ["updated_at", "2015-10-27 16:30:49.152516"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered api/notifications/index.json.jbuilder (9.0ms) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:30:49.170791"], ["updated_at", "2015-10-27 16:30:49.170791"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.172618"], ["updated_at", "2015-10-27 16:30:49.172618"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.174185"], ["updated_at", "2015-10-27 16:30:49.174185"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.4ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:30:49.189623"], ["updated_at", "2015-10-27 16:30:49.189623"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.192099"], ["updated_at", "2015-10-27 16:30:49.192099"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.193778"], ["updated_at", "2015-10-27 16:30:49.193778"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.3ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:30:49.210968"], ["updated_at", "2015-10-27 16:30:49.210968"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.215497"], ["updated_at", "2015-10-27 16:30:49.215497"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.217096"], ["updated_at", "2015-10-27 16:30:49.217096"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:30:49.346325"], ["updated_at", "2015-10-27 16:30:49.346325"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.348476"], ["updated_at", "2015-10-27 16:30:49.348476"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.350354"], ["updated_at", "2015-10-27 16:30:49.350354"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (8.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:30:49.364271"], ["updated_at", "2015-10-27 16:30:49.364271"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.366140"], ["updated_at", "2015-10-27 16:30:49.366140"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.367764"], ["updated_at", "2015-10-27 16:30:49.367764"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 16.0ms Sent mail to user7@sleede.com (5.1ms) Date: Tue, 27 Oct 2015 17:30:49 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fa6b95f009_128693ff319c601dc3688f@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:30:49.393935"], ["updated_at", "2015-10-27 16:30:49.393935"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.395577"], ["updated_at", "2015-10-27 16:30:49.395577"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.397577"], ["updated_at", "2015-10-27 16:30:49.397577"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user8@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:30:49 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fa6b961efb_128693ff319c601dc3698d@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:30:49.405059"], ["updated_at", "2015-10-27 16:30:49.405059"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.406604"], ["updated_at", "2015-10-27 16:30:49.406604"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.407917"], ["updated_at", "2015-10-27 16:30:49.407917"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.7ms Sent mail to user9@sleede.com (4.5ms) Date: Tue, 27 Oct 2015 17:30:49 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fa6b96613e_128693ff319c601dc37070@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:30:49.423421"], ["updated_at", "2015-10-27 16:30:49.423421"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.425199"], ["updated_at", "2015-10-27 16:30:49.425199"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:30:49.426634"], ["updated_at", "2015-10-27 16:30:49.426634"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:30:49 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fa6b968ebb_128693ff319c601dc37155@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.432732"], ["updated_at", "2015-10-27 16:30:49.432732"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:30:49.434521"], ["updated_at", "2015-10-27 16:30:49.434521"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:30:49.436330"], ["updated_at", "2015-10-27 16:30:49.436330"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.439122"], ["updated_at", "2015-10-27 16:30:49.439122"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:30:49.440639"], ["updated_at", "2015-10-27 16:30:49.440639"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.444795"], ["updated_at", "2015-10-27 16:30:49.444795"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:30:49.446184"], ["updated_at", "2015-10-27 16:30:49.446184"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.450164"], ["updated_at", "2015-10-27 16:30:49.450164"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:30:49.451860"], ["updated_at", "2015-10-27 16:30:49.451860"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.456792"], ["updated_at", "2015-10-27 16:30:49.456792"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:30:49.458364"], ["updated_at", "2015-10-27 16:30:49.458364"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:30:49.464284"], ["updated_at", "2015-10-27 16:30:49.464284"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.472309"], ["updated_at", "2015-10-27 16:30:49.472309"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:30:49.474062"], ["updated_at", "2015-10-27 16:30:49.474062"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:30:49.475688"], ["updated_at", "2015-10-27 16:30:49.475688"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user16@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:30:49 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562fa6b974d75_128693ff319c601dc372d7@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.481987"], ["updated_at", "2015-10-27 16:30:49.481987"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:30:49.483622"], ["updated_at", "2015-10-27 16:30:49.483622"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:30:49.485347"], ["updated_at", "2015-10-27 16:30:49.485347"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f013c186-ba64-4fd9-9518-d46cbd3504ac) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1 [ActiveJob] [1m[35mNotification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] NotificationsMailer#send_mail_by: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] Sent mail to user17@sleede.com (2.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] Date: Tue, 27 Oct 2015 17:30:49 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562fa6b97c7e7_128693ff319c601dc3732d@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [f013c186-ba64-4fd9-9518-d46cbd3504ac] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.15ms [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.519934"], ["updated_at", "2015-10-27 16:30:49.519934"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 16:30:49.522308"], ["updated_at", "2015-10-27 16:30:49.522308"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.525630"], ["updated_at", "2015-10-27 16:30:49.525630"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 16:30:49.527202"], ["updated_at", "2015-10-27 16:30:49.527202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.530357"], ["updated_at", "2015-10-27 16:30:49.530357"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 16:30:49.531887"], ["updated_at", "2015-10-27 16:30:49.531887"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:30:49.535186"], ["updated_at", "2015-10-27 16:30:49.535186"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 16:30:49.536736"], ["updated_at", "2015-10-27 16:30:49.536736"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:30:49.542416"], ["updated_at", "2015-10-27 16:30:49.542416"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:30:49.546265"], ["updated_at", "2015-10-27 16:30:49.546265"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:30:49.548004"], ["updated_at", "2015-10-27 16:30:49.548004"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:30:49.549817"], ["updated_at", "2015-10-27 16:30:49.549817"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.4ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[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 ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (3.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 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 rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.568351"], ["updated_at", "2015-10-27 16:42:31.568351"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:42:31.582408"], ["updated_at", "2015-10-27 16:42:31.582408"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.586811"], ["updated_at", "2015-10-27 16:42:31.586811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:42:31.588373"], ["updated_at", "2015-10-27 16:42:31.588373"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.592329"], ["updated_at", "2015-10-27 16:42:31.592329"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:42:31.594084"], ["updated_at", "2015-10-27 16:42:31.594084"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.598093"], ["updated_at", "2015-10-27 16:42:31.598093"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:42:31.599930"], ["updated_at", "2015-10-27 16:42:31.599930"]] [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.611753"], ["updated_at", "2015-10-27 16:42:31.611753"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:42:31.614450"], ["updated_at", "2015-10-27 16:42:31.614450"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.617806"], ["updated_at", "2015-10-27 16:42:31.617806"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:42:31.619485"], ["updated_at", "2015-10-27 16:42:31.619485"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.622692"], ["updated_at", "2015-10-27 16:42:31.622692"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:42:31.624202"], ["updated_at", "2015-10-27 16:42:31.624202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.627571"], ["updated_at", "2015-10-27 16:42:31.627571"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:42:31.629130"], ["updated_at", "2015-10-27 16:42:31.629130"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.632507"], ["updated_at", "2015-10-27 16:42:31.632507"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:42:31.634352"], ["updated_at", "2015-10-27 16:42:31.634352"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.637884"], ["updated_at", "2015-10-27 16:42:31.637884"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:42:31.639451"], ["updated_at", "2015-10-27 16:42:31.639451"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.642622"], ["updated_at", "2015-10-27 16:42:31.642622"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:42:31.644284"], ["updated_at", "2015-10-27 16:42:31.644284"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:42:31.648838"], ["updated_at", "2015-10-27 16:42:31.648838"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:42:31.651280"], ["updated_at", "2015-10-27 16:42:31.651280"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[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 ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.638232"], ["updated_at", "2015-10-27 16:43:04.638232"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:43:04.649866"], ["updated_at", "2015-10-27 16:43:04.649866"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.653332"], ["updated_at", "2015-10-27 16:43:04.653332"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:43:04.654864"], ["updated_at", "2015-10-27 16:43:04.654864"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.657699"], ["updated_at", "2015-10-27 16:43:04.657699"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:43:04.660823"], ["updated_at", "2015-10-27 16:43:04.660823"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.664109"], ["updated_at", "2015-10-27 16:43:04.664109"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:43:04.666047"], ["updated_at", "2015-10-27 16:43:04.666047"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.669667"], ["updated_at", "2015-10-27 16:43:04.669667"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:43:04.671058"], ["updated_at", "2015-10-27 16:43:04.671058"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.673837"], ["updated_at", "2015-10-27 16:43:04.673837"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:43:04.677657"], ["updated_at", "2015-10-27 16:43:04.677657"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.683713"], ["updated_at", "2015-10-27 16:43:04.683713"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:43:04.687454"], ["updated_at", "2015-10-27 16:43:04.687454"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.690718"], ["updated_at", "2015-10-27 16:43:04.690718"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:43:04.692179"], ["updated_at", "2015-10-27 16:43:04.692179"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.695378"], ["updated_at", "2015-10-27 16:43:04.695378"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:43:04.696845"], ["updated_at", "2015-10-27 16:43:04.696845"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.700096"], ["updated_at", "2015-10-27 16:43:04.700096"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:43:04.701944"], ["updated_at", "2015-10-27 16:43:04.701944"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.705000"], ["updated_at", "2015-10-27 16:43:04.705000"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:43:04.706391"], ["updated_at", "2015-10-27 16:43:04.706391"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:43:04.709366"], ["updated_at", "2015-10-27 16:43:04.709366"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:43:04.710769"], ["updated_at", "2015-10-27 16:43:04.710769"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (10.8ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (10.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (3.3ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.073370"], ["updated_at", "2015-10-27 16:45:50.073370"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:45:50.086962"], ["updated_at", "2015-10-27 16:45:50.086962"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.093869"], ["updated_at", "2015-10-27 16:45:50.093869"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:45:50.097750"], ["updated_at", "2015-10-27 16:45:50.097750"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.102960"], ["updated_at", "2015-10-27 16:45:50.102960"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:45:50.107125"], ["updated_at", "2015-10-27 16:45:50.107125"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.119158"], ["updated_at", "2015-10-27 16:45:50.119158"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:45:50.125933"], ["updated_at", "2015-10-27 16:45:50.125933"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.134808"], ["updated_at", "2015-10-27 16:45:50.134808"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:45:50.137437"], ["updated_at", "2015-10-27 16:45:50.137437"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.142808"], ["updated_at", "2015-10-27 16:45:50.142808"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:45:50.146072"], ["updated_at", "2015-10-27 16:45:50.146072"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.151081"], ["updated_at", "2015-10-27 16:45:50.151081"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:45:50.153664"], ["updated_at", "2015-10-27 16:45:50.153664"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.158137"], ["updated_at", "2015-10-27 16:45:50.158137"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:45:50.160986"], ["updated_at", "2015-10-27 16:45:50.160986"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.167348"], ["updated_at", "2015-10-27 16:45:50.167348"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:45:50.175167"], ["updated_at", "2015-10-27 16:45:50.175167"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.185320"], ["updated_at", "2015-10-27 16:45:50.185320"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:45:50.188989"], ["updated_at", "2015-10-27 16:45:50.188989"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.195516"], ["updated_at", "2015-10-27 16:45:50.195516"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:45:50.198786"], ["updated_at", "2015-10-27 16:45:50.198786"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:45:50.207049"], ["updated_at", "2015-10-27 16:45:50.207049"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:45:50.211794"], ["updated_at", "2015-10-27 16:45:50.211794"]] [1m[36m (0.1ms)[0m [1mRELEASE 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 rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.7ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 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 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.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.223452"], ["updated_at", "2015-10-27 16:46:10.223452"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:46:10.236042"], ["updated_at", "2015-10-27 16:46:10.236042"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (8.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.250227"], ["updated_at", "2015-10-27 16:46:10.250227"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:46:10.252283"], ["updated_at", "2015-10-27 16:46:10.252283"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.256166"], ["updated_at", "2015-10-27 16:46:10.256166"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:46:10.258322"], ["updated_at", "2015-10-27 16:46:10.258322"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.265950"], ["updated_at", "2015-10-27 16:46:10.265950"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:46:10.269670"], ["updated_at", "2015-10-27 16:46:10.269670"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.275540"], ["updated_at", "2015-10-27 16:46:10.275540"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:46:10.280201"], ["updated_at", "2015-10-27 16:46:10.280201"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.284594"], ["updated_at", "2015-10-27 16:46:10.284594"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:46:10.290327"], ["updated_at", "2015-10-27 16:46:10.290327"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.295291"], ["updated_at", "2015-10-27 16:46:10.295291"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:46:10.297517"], ["updated_at", "2015-10-27 16:46:10.297517"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.309279"], ["updated_at", "2015-10-27 16:46:10.309279"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:46:10.314099"], ["updated_at", "2015-10-27 16:46:10.314099"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.318666"], ["updated_at", "2015-10-27 16:46:10.318666"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:46:10.323921"], ["updated_at", "2015-10-27 16:46:10.323921"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.332249"], ["updated_at", "2015-10-27 16:46:10.332249"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:46:10.333811"], ["updated_at", "2015-10-27 16:46:10.333811"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.340877"], ["updated_at", "2015-10-27 16:46:10.340877"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:46:10.345108"], ["updated_at", "2015-10-27 16:46:10.345108"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:10.352757"], ["updated_at", "2015-10-27 16:46:10.352757"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:46:10.355235"], ["updated_at", "2015-10-27 16:46:10.355235"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.9ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (3.5ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:47.932528"], ["updated_at", "2015-10-27 16:46:47.932528"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:46:47.945124"], ["updated_at", "2015-10-27 16:46:47.945124"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (8.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:47.959181"], ["updated_at", "2015-10-27 16:46:47.959181"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:46:47.961171"], ["updated_at", "2015-10-27 16:46:47.961171"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:47.964854"], ["updated_at", "2015-10-27 16:46:47.964854"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:46:47.967428"], ["updated_at", "2015-10-27 16:46:47.967428"]] [1m[36m (0.0ms)[0m [1mRELEASE 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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:47.970636"], ["updated_at", "2015-10-27 16:46:47.970636"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:46:47.973681"], ["updated_at", "2015-10-27 16:46:47.973681"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:47.986413"], ["updated_at", "2015-10-27 16:46:47.986413"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:46:47.993996"], ["updated_at", "2015-10-27 16:46:47.993996"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:48.000079"], ["updated_at", "2015-10-27 16:46:48.000079"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:46:48.003131"], ["updated_at", "2015-10-27 16:46:48.003131"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:48.007423"], ["updated_at", "2015-10-27 16:46:48.007423"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:46:48.011162"], ["updated_at", "2015-10-27 16:46:48.011162"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:48.015876"], ["updated_at", "2015-10-27 16:46:48.015876"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:46:48.018074"], ["updated_at", "2015-10-27 16:46:48.018074"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:48.027395"], ["updated_at", "2015-10-27 16:46:48.027395"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:46:48.029807"], ["updated_at", "2015-10-27 16:46:48.029807"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:48.033827"], ["updated_at", "2015-10-27 16:46:48.033827"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:46:48.037666"], ["updated_at", "2015-10-27 16:46:48.037666"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:48.041077"], ["updated_at", "2015-10-27 16:46:48.041077"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:46:48.042885"], ["updated_at", "2015-10-27 16:46:48.042885"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:46:48.046581"], ["updated_at", "2015-10-27 16:46:48.046581"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:46:48.048316"], ["updated_at", "2015-10-27 16:46:48.048316"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.3ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (16.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (2.1ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (6.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[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.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 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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.425057"], ["updated_at", "2015-10-27 16:49:17.425057"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:49:17.439936"], ["updated_at", "2015-10-27 16:49:17.439936"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.453089"], ["updated_at", "2015-10-27 16:49:17.453089"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:49:17.455253"], ["updated_at", "2015-10-27 16:49:17.455253"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.459775"], ["updated_at", "2015-10-27 16:49:17.459775"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:49:17.463382"], ["updated_at", "2015-10-27 16:49:17.463382"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.477238"], ["updated_at", "2015-10-27 16:49:17.477238"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:49:17.485620"], ["updated_at", "2015-10-27 16:49:17.485620"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.493059"], ["updated_at", "2015-10-27 16:49:17.493059"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:49:17.495016"], ["updated_at", "2015-10-27 16:49:17.495016"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.498647"], ["updated_at", "2015-10-27 16:49:17.498647"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:49:17.500731"], ["updated_at", "2015-10-27 16:49:17.500731"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.507557"], ["updated_at", "2015-10-27 16:49:17.507557"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:49:17.509509"], ["updated_at", "2015-10-27 16:49:17.509509"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.521490"], ["updated_at", "2015-10-27 16:49:17.521490"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:49:17.528138"], ["updated_at", "2015-10-27 16:49:17.528138"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.541708"], ["updated_at", "2015-10-27 16:49:17.541708"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:49:17.545894"], ["updated_at", "2015-10-27 16:49:17.545894"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.554297"], ["updated_at", "2015-10-27 16:49:17.554297"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (12.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:49:17.556192"], ["updated_at", "2015-10-27 16:49:17.556192"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.590412"], ["updated_at", "2015-10-27 16:49:17.590412"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:49:17.592267"], ["updated_at", "2015-10-27 16:49:17.592267"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:49:17.605114"], ["updated_at", "2015-10-27 16:49:17.605114"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:49:17.610637"], ["updated_at", "2015-10-27 16:49:17.610637"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.129485"], ["updated_at", "2015-10-27 16:50:49.129485"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:50:49.141241"], ["updated_at", "2015-10-27 16:50:49.141241"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.152743"], ["updated_at", "2015-10-27 16:50:49.152743"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:50:49.154602"], ["updated_at", "2015-10-27 16:50:49.154602"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.158466"], ["updated_at", "2015-10-27 16:50:49.158466"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:50:49.160704"], ["updated_at", "2015-10-27 16:50:49.160704"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.166198"], ["updated_at", "2015-10-27 16:50:49.166198"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:50:49.170890"], ["updated_at", "2015-10-27 16:50:49.170890"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.178014"], ["updated_at", "2015-10-27 16:50:49.178014"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:50:49.180043"], ["updated_at", "2015-10-27 16:50:49.180043"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.183410"], ["updated_at", "2015-10-27 16:50:49.183410"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:50:49.184940"], ["updated_at", "2015-10-27 16:50:49.184940"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.188104"], ["updated_at", "2015-10-27 16:50:49.188104"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:50:49.189662"], ["updated_at", "2015-10-27 16:50:49.189662"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.193131"], ["updated_at", "2015-10-27 16:50:49.193131"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:50:49.194771"], ["updated_at", "2015-10-27 16:50:49.194771"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.198005"], ["updated_at", "2015-10-27 16:50:49.198005"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:50:49.199525"], ["updated_at", "2015-10-27 16:50:49.199525"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.202767"], ["updated_at", "2015-10-27 16:50:49.202767"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:50:49.206073"], ["updated_at", "2015-10-27 16:50:49.206073"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.218979"], ["updated_at", "2015-10-27 16:50:49.218979"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:50:49.224985"], ["updated_at", "2015-10-27 16:50:49.224985"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:50:49.229694"], ["updated_at", "2015-10-27 16:50:49.229694"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:50:49.231441"], ["updated_at", "2015-10-27 16:50:49.231441"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:51:19.913544"], ["updated_at", "2015-10-27 16:51:19.913544"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:51:19.924643"], ["updated_at", "2015-10-27 16:51:19.924643"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:51:19.937539"], ["updated_at", "2015-10-27 16:51:19.937539"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:19.941608"], ["updated_at", "2015-10-27 16:51:19.941608"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:51:19.943596"], ["updated_at", "2015-10-27 16:51:19.943596"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:19.960279"], ["updated_at", "2015-10-27 16:51:19.960279"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:51:19.962072"], ["updated_at", "2015-10-27 16:51:19.962072"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:19.965968"], ["updated_at", "2015-10-27 16:51:19.965968"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:51:19.967496"], ["updated_at", "2015-10-27 16:51:19.967496"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:19.971773"], ["updated_at", "2015-10-27 16:51:19.971773"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:51:19.973157"], ["updated_at", "2015-10-27 16:51:19.973157"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:51:19.974592"], ["updated_at", "2015-10-27 16:51:19.974592"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:19.980906"], ["updated_at", "2015-10-27 16:51:19.980906"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:51:19.982333"], ["updated_at", "2015-10-27 16:51:19.982333"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:51:19.983824"], ["updated_at", "2015-10-27 16:51:19.983824"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 22.2ms Sent mail to user6@sleede.com (8.2ms) Date: Tue, 27 Oct 2015 17:51:20 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <562fab8838e4_129b93ff28545c1dc38381@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:51:20.021297"], ["updated_at", "2015-10-27 16:51:20.021297"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:51:20.022928"], ["updated_at", "2015-10-27 16:51:20.022928"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:51:20.024736"], ["updated_at", "2015-10-27 16:51:20.024736"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8b4d1ac2-217d-41e1-a9f7-b98f50fe8567) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] NotificationsMailer#send_mail_by: processed outbound mail in 7.7ms [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] Sent mail to user7@sleede.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] Date: Tue, 27 Oct 2015 17:51:20 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fab88d022_129b93ff28545c1dc384ac@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [8b4d1ac2-217d-41e1-a9f7-b98f50fe8567] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.18ms [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:51:20.057745"], ["updated_at", "2015-10-27 16:51:20.057745"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:51:20.059743"], ["updated_at", "2015-10-27 16:51:20.059743"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:51:20.063684"], ["updated_at", "2015-10-27 16:51:20.063684"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:51:20.065540"], ["updated_at", "2015-10-27 16:51:20.065540"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:51:20.069039"], ["updated_at", "2015-10-27 16:51:20.069039"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:51:20.072489"], ["updated_at", "2015-10-27 16:51:20.072489"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:51:20.081156"], ["updated_at", "2015-10-27 16:51:20.081156"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:51:20.082756"], ["updated_at", "2015-10-27 16:51:20.082756"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:51:20.096133"], ["updated_at", "2015-10-27 16:51:20.096133"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:51:20.097717"], ["updated_at", "2015-10-27 16:51:20.097717"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:51:20.099350"], ["updated_at", "2015-10-27 16:51:20.099350"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (2.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:52:26.559120"], ["updated_at", "2015-10-27 16:52:26.559120"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:52:26.569881"], ["updated_at", "2015-10-27 16:52:26.569881"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:52:26.584077"], ["updated_at", "2015-10-27 16:52:26.584077"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.588432"], ["updated_at", "2015-10-27 16:52:26.588432"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:52:26.590356"], ["updated_at", "2015-10-27 16:52:26.590356"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.605759"], ["updated_at", "2015-10-27 16:52:26.605759"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:52:26.607843"], ["updated_at", "2015-10-27 16:52:26.607843"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.611870"], ["updated_at", "2015-10-27 16:52:26.611870"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:52:26.613766"], ["updated_at", "2015-10-27 16:52:26.613766"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.617772"], ["updated_at", "2015-10-27 16:52:26.617772"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:52:26.619284"], ["updated_at", "2015-10-27 16:52:26.619284"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:52:26.620807"], ["updated_at", "2015-10-27 16:52:26.620807"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.627039"], ["updated_at", "2015-10-27 16:52:26.627039"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:52:26.628525"], ["updated_at", "2015-10-27 16:52:26.628525"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:52:26.630052"], ["updated_at", "2015-10-27 16:52:26.630052"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (3.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 24.2ms Sent mail to user6@sleede.com (5.9ms) Date: Tue, 27 Oct 2015 17:52:26 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <562fabcaa1420_129cb3ff4594601d086670@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:52:26.666070"], ["updated_at", "2015-10-27 16:52:26.666070"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:52:26.667677"], ["updated_at", "2015-10-27 16:52:26.667677"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:52:26.669408"], ["updated_at", "2015-10-27 16:52:26.669408"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 632e8929-af5c-4110-9e12-07ed3d1c4039) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] NotificationsMailer#send_mail_by: processed outbound mail in 7.1ms [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] Sent mail to user7@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] Date: Tue, 27 Oct 2015 17:52:26 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fabcaaa34f_129cb3ff4594601d08677d@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [632e8929-af5c-4110-9e12-07ed3d1c4039] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.69ms [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.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:52:26.700350"], ["updated_at", "2015-10-27 16:52:26.700350"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:52:26.703049"], ["updated_at", "2015-10-27 16:52:26.703049"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:52:26.706691"], ["updated_at", "2015-10-27 16:52:26.706691"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:52:26.708770"], ["updated_at", "2015-10-27 16:52:26.708770"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:52:26.713242"], ["updated_at", "2015-10-27 16:52:26.713242"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:52:26.718474"], ["updated_at", "2015-10-27 16:52:26.718474"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:52:26.725060"], ["updated_at", "2015-10-27 16:52:26.725060"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:52:26.727030"], ["updated_at", "2015-10-27 16:52:26.727030"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:52:26.741659"], ["updated_at", "2015-10-27 16:52:26.741659"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:52:26.743886"], ["updated_at", "2015-10-27 16:52:26.743886"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:52:26.746540"], ["updated_at", "2015-10-27 16:52:26.746540"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:39.693136"], ["updated_at", "2015-10-27 16:53:39.693136"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.701435"], ["updated_at", "2015-10-27 16:53:39.701435"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:53:39.705454"], ["updated_at", "2015-10-27 16:53:39.705454"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.727382"], ["updated_at", "2015-10-27 16:53:39.727382"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:53:39.728863"], ["updated_at", "2015-10-27 16:53:39.728863"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.732389"], ["updated_at", "2015-10-27 16:53:39.732389"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:53:39.733695"], ["updated_at", "2015-10-27 16:53:39.733695"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.742154"], ["updated_at", "2015-10-27 16:53:39.742154"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:53:39.746752"], ["updated_at", "2015-10-27 16:53:39.746752"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:39.748739"], ["updated_at", "2015-10-27 16:53:39.748739"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.756491"], ["updated_at", "2015-10-27 16:53:39.756491"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:53:39.757946"], ["updated_at", "2015-10-27 16:53:39.757946"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:39.759388"], ["updated_at", "2015-10-27 16:53:39.759388"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 19.1ms Sent mail to user5@sleede.com (9.9ms) Date: Tue, 27 Oct 2015 17:53:39 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <562fac13bfcb6_129dd3fe8a94601dc93429@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:39.796000"], ["updated_at", "2015-10-27 16:53:39.796000"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:53:39.797550"], ["updated_at", "2015-10-27 16:53:39.797550"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:39.799028"], ["updated_at", "2015-10-27 16:53:39.799028"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 077d8d71-a8d0-4b54-b51c-30340fab6231) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] NotificationsMailer#send_mail_by: processed outbound mail in 7.6ms [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] Sent mail to user6@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] Date: Tue, 27 Oct 2015 17:53:39 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <562fac13ca146_129dd3fe8a94601dc9351f@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[ActiveJob] [ActionMailer::DeliveryJob] [077d8d71-a8d0-4b54-b51c-30340fab6231] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.39ms [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:39.831781"], ["updated_at", "2015-10-27 16:53:39.831781"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:53:39.833517"], ["updated_at", "2015-10-27 16:53:39.833517"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:39.837279"], ["updated_at", "2015-10-27 16:53:39.837279"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:53:39.838801"], ["updated_at", "2015-10-27 16:53:39.838801"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:39.843255"], ["updated_at", "2015-10-27 16:53:39.843255"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:53:39.848089"], ["updated_at", "2015-10-27 16:53:39.848089"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:39.854758"], ["updated_at", "2015-10-27 16:53:39.854758"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:53:39.856203"], ["updated_at", "2015-10-27 16:53:39.856203"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:39.862411"], ["updated_at", "2015-10-27 16:53:39.862411"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:53:39.864131"], ["updated_at", "2015-10-27 16:53:39.864131"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:39.865715"], ["updated_at", "2015-10-27 16:53:39.865715"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.4ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:58.184766"], ["updated_at", "2015-10-27 16:53:58.184766"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:53:58.193499"], ["updated_at", "2015-10-27 16:53:58.193499"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:58.203011"], ["updated_at", "2015-10-27 16:53:58.203011"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.214538"], ["updated_at", "2015-10-27 16:53:58.214538"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:53:58.216494"], ["updated_at", "2015-10-27 16:53:58.216494"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.223677"], ["updated_at", "2015-10-27 16:53:58.223677"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:53:58.228731"], ["updated_at", "2015-10-27 16:53:58.228731"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.237615"], ["updated_at", "2015-10-27 16:53:58.237615"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:53:58.239124"], ["updated_at", "2015-10-27 16:53:58.239124"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.242710"], ["updated_at", "2015-10-27 16:53:58.242710"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:53:58.244150"], ["updated_at", "2015-10-27 16:53:58.244150"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:58.245605"], ["updated_at", "2015-10-27 16:53:58.245605"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.250455"], ["updated_at", "2015-10-27 16:53:58.250455"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:53:58.251932"], ["updated_at", "2015-10-27 16:53:58.251932"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:58.253636"], ["updated_at", "2015-10-27 16:53:58.253636"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 15.6ms Sent mail to user6@sleede.com (6.7ms) Date: Tue, 27 Oct 2015 17:53:58 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <562fac2642edd_129e33fee204601d8223ac@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.283217"], ["updated_at", "2015-10-27 16:53:58.283217"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:53:58.285962"], ["updated_at", "2015-10-27 16:53:58.285962"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:58.287695"], ["updated_at", "2015-10-27 16:53:58.287695"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 57663dad-8b51-4685-a710-d19d3bd0fe47) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] NotificationsMailer#send_mail_by: processed outbound mail in 5.3ms [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] Sent mail to user7@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] Date: Tue, 27 Oct 2015 17:53:58 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fac264aa94_129e33fee204601d82244d@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [57663dad-8b51-4685-a710-d19d3bd0fe47] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.9ms [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:58.308982"], ["updated_at", "2015-10-27 16:53:58.308982"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:53:58.310505"], ["updated_at", "2015-10-27 16:53:58.310505"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:58.313246"], ["updated_at", "2015-10-27 16:53:58.313246"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:53:58.314598"], ["updated_at", "2015-10-27 16:53:58.314598"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:58.319042"], ["updated_at", "2015-10-27 16:53:58.319042"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:53:58.320747"], ["updated_at", "2015-10-27 16:53:58.320747"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:53:58.324546"], ["updated_at", "2015-10-27 16:53:58.324546"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:53:58.326366"], ["updated_at", "2015-10-27 16:53:58.326366"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:58.341785"], ["updated_at", "2015-10-27 16:53:58.341785"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:53:58.345528"], ["updated_at", "2015-10-27 16:53:58.345528"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:53:58.347118"], ["updated_at", "2015-10-27 16:53:58.347118"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:53:58.348753"], ["updated_at", "2015-10-27 16:53:58.348753"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.8ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:55:36.640577"], ["updated_at", "2015-10-27 16:55:36.640577"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.654883"], ["updated_at", "2015-10-27 16:55:36.654883"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.656775"], ["updated_at", "2015-10-27 16:55:36.656775"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 20ms (Views: 9.6ms | ActiveRecord: 0.0ms) [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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:55:36.701145"], ["updated_at", "2015-10-27 16:55:36.701145"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:36.702992"], ["updated_at", "2015-10-27 16:55:36.702992"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.704541"], ["updated_at", "2015-10-27 16:55:36.704541"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.8ms) Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:55:36.727540"], ["updated_at", "2015-10-27 16:55:36.727540"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.729199"], ["updated_at", "2015-10-27 16:55:36.729199"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.730660"], ["updated_at", "2015-10-27 16:55:36.730660"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.8ms) Completed 200 OK in 10ms (Views: 3.5ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:55:36.747007"], ["updated_at", "2015-10-27 16:55:36.747007"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:36.748628"], ["updated_at", "2015-10-27 16:55:36.748628"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.750013"], ["updated_at", "2015-10-27 16:55:36.750013"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.5ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:55:36.760258"], ["updated_at", "2015-10-27 16:55:36.760258"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:36.765064"], ["updated_at", "2015-10-27 16:55:36.765064"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.771250"], ["updated_at", "2015-10-27 16:55:36.771250"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:55:36.924467"], ["updated_at", "2015-10-27 16:55:36.924467"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:36.926887"], ["updated_at", "2015-10-27 16:55:36.926887"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.928434"], ["updated_at", "2015-10-27 16:55:36.928434"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:55:36.934408"], ["updated_at", "2015-10-27 16:55:36.934408"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.936212"], ["updated_at", "2015-10-27 16:55:36.936212"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.938225"], ["updated_at", "2015-10-27 16:55:36.938225"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.4ms Sent mail to user7@sleede.com (6.2ms) Date: Tue, 27 Oct 2015 17:55:36 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fac88eb059_12a033fda0a05e1e0506fe@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:55:36.969976"], ["updated_at", "2015-10-27 16:55:36.969976"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.972189"], ["updated_at", "2015-10-27 16:55:36.972189"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.973898"], ["updated_at", "2015-10-27 16:55:36.973898"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user8@sleede.com (2.0ms) Date: Tue, 27 Oct 2015 17:55:36 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fac88eec63_12a033fda0a05e1e050786@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:55:36.986517"], ["updated_at", "2015-10-27 16:55:36.986517"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:36.990730"], ["updated_at", "2015-10-27 16:55:36.990730"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:36.992669"], ["updated_at", "2015-10-27 16:55:36.992669"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:55:36 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fac88f3213_12a033fda0a05e1e0508cb@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:55:36.999457"], ["updated_at", "2015-10-27 16:55:36.999457"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.000979"], ["updated_at", "2015-10-27 16:55:37.000979"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:37.002303"], ["updated_at", "2015-10-27 16:55:37.002303"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:55:37 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fac8916bc_12a033fda0a05e1e0509d7@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:37.008977"], ["updated_at", "2015-10-27 16:55:37.008977"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:55:37.010578"], ["updated_at", "2015-10-27 16:55:37.010578"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:37.012320"], ["updated_at", "2015-10-27 16:55:37.012320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.015362"], ["updated_at", "2015-10-27 16:55:37.015362"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:55:37.019118"], ["updated_at", "2015-10-27 16:55:37.019118"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.023987"], ["updated_at", "2015-10-27 16:55:37.023987"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:55:37.026489"], ["updated_at", "2015-10-27 16:55:37.026489"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.033167"], ["updated_at", "2015-10-27 16:55:37.033167"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:55:37.037318"], ["updated_at", "2015-10-27 16:55:37.037318"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.043379"], ["updated_at", "2015-10-27 16:55:37.043379"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:55:37.044877"], ["updated_at", "2015-10-27 16:55:37.044877"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:37.046639"], ["updated_at", "2015-10-27 16:55:37.046639"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.050360"], ["updated_at", "2015-10-27 16:55:37.050360"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:55:37.052082"], ["updated_at", "2015-10-27 16:55:37.052082"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:37.053789"], ["updated_at", "2015-10-27 16:55:37.053789"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user16@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:55:37 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562fac89dde9_12a033fda0a05e1e05103b@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.060384"], ["updated_at", "2015-10-27 16:55:37.060384"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:55:37.062069"], ["updated_at", "2015-10-27 16:55:37.062069"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:37.063767"], ["updated_at", "2015-10-27 16:55:37.063767"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 685e52bd-4fb7-4578-b033-964904a4b32f) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] Sent mail to user17@sleede.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] Date: Tue, 27 Oct 2015 17:55:37 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562fac891765f_12a033fda0a05e1e0511e5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [685e52bd-4fb7-4578-b033-964904a4b32f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.18ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:37.099060"], ["updated_at", "2015-10-27 16:55:37.099060"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 16:55:37.100806"], ["updated_at", "2015-10-27 16:55:37.100806"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:37.103936"], ["updated_at", "2015-10-27 16:55:37.103936"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 16:55:37.105458"], ["updated_at", "2015-10-27 16:55:37.105458"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:37.108789"], ["updated_at", "2015-10-27 16:55:37.108789"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 16:55:37.110546"], ["updated_at", "2015-10-27 16:55:37.110546"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:37.113798"], ["updated_at", "2015-10-27 16:55:37.113798"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 16:55:37.115425"], ["updated_at", "2015-10-27 16:55:37.115425"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:37.121089"], ["updated_at", "2015-10-27 16:55:37.121089"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:37.124924"], ["updated_at", "2015-10-27 16:55:37.124924"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:55:37.126587"], ["updated_at", "2015-10-27 16:55:37.126587"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:37.128322"], ["updated_at", "2015-10-27 16:55:37.128322"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[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 ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:55:51.139318"], ["updated_at", "2015-10-27 16:55:51.139318"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.157723"], ["updated_at", "2015-10-27 16:55:51.157723"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.163323"], ["updated_at", "2015-10-27 16:55:51.163323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:55:51.190673"], ["updated_at", "2015-10-27 16:55:51.190673"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.192468"], ["updated_at", "2015-10-27 16:55:51.192468"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.194033"], ["updated_at", "2015-10-27 16:55:51.194033"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:55:51.202336"], ["updated_at", "2015-10-27 16:55:51.202336"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.204004"], ["updated_at", "2015-10-27 16:55:51.204004"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.205462"], ["updated_at", "2015-10-27 16:55:51.205462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:55:51.213227"], ["updated_at", "2015-10-27 16:55:51.213227"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.214787"], ["updated_at", "2015-10-27 16:55:51.214787"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.216137"], ["updated_at", "2015-10-27 16:55:51.216137"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:55:51.225934"], ["updated_at", "2015-10-27 16:55:51.225934"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.228135"], ["updated_at", "2015-10-27 16:55:51.228135"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.230067"], ["updated_at", "2015-10-27 16:55:51.230067"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:55:51.392522"], ["updated_at", "2015-10-27 16:55:51.392522"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.394224"], ["updated_at", "2015-10-27 16:55:51.394224"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.395765"], ["updated_at", "2015-10-27 16:55:51.395765"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:55:51.401063"], ["updated_at", "2015-10-27 16:55:51.401063"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.402879"], ["updated_at", "2015-10-27 16:55:51.402879"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.404670"], ["updated_at", "2015-10-27 16:55:51.404670"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.0ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 32.0ms Sent mail to user7@sleede.com (10.1ms) Date: Tue, 27 Oct 2015 17:55:51 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fac976c8b7_12a093fe3ba0601d423082@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:55:51.457915"], ["updated_at", "2015-10-27 16:55:51.457915"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.460196"], ["updated_at", "2015-10-27 16:55:51.460196"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.462157"], ["updated_at", "2015-10-27 16:55:51.462157"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:55:51 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fac9771a25_12a093fe3ba0601d42316@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:55:51.470166"], ["updated_at", "2015-10-27 16:55:51.470166"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.471948"], ["updated_at", "2015-10-27 16:55:51.471948"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.473480"], ["updated_at", "2015-10-27 16:55:51.473480"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:55:51 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fac9774594_12a093fe3ba0601d423292@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:55:51.480285"], ["updated_at", "2015-10-27 16:55:51.480285"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.481984"], ["updated_at", "2015-10-27 16:55:51.481984"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:55:51.483467"], ["updated_at", "2015-10-27 16:55:51.483467"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (2.3ms) Date: Tue, 27 Oct 2015 17:55:51 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fac9776d07_12a093fe3ba0601d42330@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.491364"], ["updated_at", "2015-10-27 16:55:51.491364"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:55:51.493786"], ["updated_at", "2015-10-27 16:55:51.493786"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:51.496133"], ["updated_at", "2015-10-27 16:55:51.496133"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.498864"], ["updated_at", "2015-10-27 16:55:51.498864"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:55:51.501054"], ["updated_at", "2015-10-27 16:55:51.501054"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.513058"], ["updated_at", "2015-10-27 16:55:51.513058"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:55:51.514925"], ["updated_at", "2015-10-27 16:55:51.514925"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.519935"], ["updated_at", "2015-10-27 16:55:51.519935"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:55:51.521825"], ["updated_at", "2015-10-27 16:55:51.521825"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.525948"], ["updated_at", "2015-10-27 16:55:51.525948"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:55:51.527559"], ["updated_at", "2015-10-27 16:55:51.527559"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:51.529232"], ["updated_at", "2015-10-27 16:55:51.529232"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.532485"], ["updated_at", "2015-10-27 16:55:51.532485"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:55:51.534045"], ["updated_at", "2015-10-27 16:55:51.534045"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:51.535724"], ["updated_at", "2015-10-27 16:55:51.535724"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user16@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:55:51 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562fac97838cd_12a093fe3ba0601d42348a@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:55:51.544334"], ["updated_at", "2015-10-27 16:55:51.544334"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:55:51.546608"], ["updated_at", "2015-10-27 16:55:51.546608"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:51.549261"], ["updated_at", "2015-10-27 16:55:51.549261"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8da1e714-8c0f-4525-93db-a50e59a09980) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] NotificationsMailer#send_mail_by: processed outbound mail in 8.3ms [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] Sent mail to user17@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] Date: Tue, 27 Oct 2015 17:55:51 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562fac978eabf_12a093fe3ba0601d4235df@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [8da1e714-8c0f-4525-93db-a50e59a09980] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.99ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.587487"], ["updated_at", "2015-10-27 16:55:51.587487"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 16:55:51.589101"], ["updated_at", "2015-10-27 16:55:51.589101"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.593745"], ["updated_at", "2015-10-27 16:55:51.593745"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 16:55:51.595681"], ["updated_at", "2015-10-27 16:55:51.595681"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.599399"], ["updated_at", "2015-10-27 16:55:51.599399"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 16:55:51.600956"], ["updated_at", "2015-10-27 16:55:51.600956"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.611609"], ["updated_at", "2015-10-27 16:55:51.611609"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 16:55:51.614791"], ["updated_at", "2015-10-27 16:55:51.614791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:55:51.622020"], ["updated_at", "2015-10-27 16:55:51.622020"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:55:51.623553"], ["updated_at", "2015-10-27 16:55:51.623553"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:55:51.625312"], ["updated_at", "2015-10-27 16:55:51.625312"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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 ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 16:56:00.997022"], ["updated_at", "2015-10-27 16:56:00.997022"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.012132"], ["updated_at", "2015-10-27 16:56:01.012132"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.016035"], ["updated_at", "2015-10-27 16:56:01.016035"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 20ms (Views: 9.8ms | ActiveRecord: 0.0ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 16:56:01.061855"], ["updated_at", "2015-10-27 16:56:01.061855"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.063721"], ["updated_at", "2015-10-27 16:56:01.063721"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.065214"], ["updated_at", "2015-10-27 16:56:01.065214"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered api/notifications/index.json.jbuilder (12.2ms) Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.2ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 16:56:01.086788"], ["updated_at", "2015-10-27 16:56:01.086788"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.088589"], ["updated_at", "2015-10-27 16:56:01.088589"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.090131"], ["updated_at", "2015-10-27 16:56:01.090131"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.3ms) Completed 200 OK in 10ms (Views: 4.2ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 16:56:01.107482"], ["updated_at", "2015-10-27 16:56:01.107482"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.109054"], ["updated_at", "2015-10-27 16:56:01.109054"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.110427"], ["updated_at", "2015-10-27 16:56:01.110427"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.7ms) Completed 200 OK in 9ms (Views: 3.4ms | ActiveRecord: 0.5ms) [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 16:56:01.128278"], ["updated_at", "2015-10-27 16:56:01.128278"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.130090"], ["updated_at", "2015-10-27 16:56:01.130090"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.131612"], ["updated_at", "2015-10-27 16:56:01.131612"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 16:56:01.280770"], ["updated_at", "2015-10-27 16:56:01.280770"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.282620"], ["updated_at", "2015-10-27 16:56:01.282620"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.284139"], ["updated_at", "2015-10-27 16:56:01.284139"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 16:56:01.289504"], ["updated_at", "2015-10-27 16:56:01.289504"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.291264"], ["updated_at", "2015-10-27 16:56:01.291264"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.292883"], ["updated_at", "2015-10-27 16:56:01.292883"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.0ms Sent mail to user7@sleede.com (6.5ms) Date: Tue, 27 Oct 2015 17:56:01 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562faca14d6f4_12a0e3fe0ad4601e0698c7@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 16:56:01.324319"], ["updated_at", "2015-10-27 16:56:01.324319"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.326698"], ["updated_at", "2015-10-27 16:56:01.326698"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.328584"], ["updated_at", "2015-10-27 16:56:01.328584"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.3ms Sent mail to user8@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:56:01 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562faca1514a3_12a0e3fe0ad4601e069940@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 16:56:01.336441"], ["updated_at", "2015-10-27 16:56:01.336441"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.338193"], ["updated_at", "2015-10-27 16:56:01.338193"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.340247"], ["updated_at", "2015-10-27 16:56:01.340247"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 5.0ms Sent mail to user9@sleede.com (2.1ms) Date: Tue, 27 Oct 2015 17:56:01 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562faca155b90_12a0e3fe0ad4601e07003@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 16:56:01.355072"], ["updated_at", "2015-10-27 16:56:01.355072"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.356872"], ["updated_at", "2015-10-27 16:56:01.356872"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 16:56:01.358294"], ["updated_at", "2015-10-27 16:56:01.358294"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 17:56:01 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562faca158399_12a0e3fe0ad4601e07011c@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.364379"], ["updated_at", "2015-10-27 16:56:01.364379"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 16:56:01.366101"], ["updated_at", "2015-10-27 16:56:01.366101"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:56:01.367790"], ["updated_at", "2015-10-27 16:56:01.367790"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.370847"], ["updated_at", "2015-10-27 16:56:01.370847"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 16:56:01.372308"], ["updated_at", "2015-10-27 16:56:01.372308"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.376682"], ["updated_at", "2015-10-27 16:56:01.376682"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 16:56:01.378246"], ["updated_at", "2015-10-27 16:56:01.378246"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.384126"], ["updated_at", "2015-10-27 16:56:01.384126"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 16:56:01.386200"], ["updated_at", "2015-10-27 16:56:01.386200"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.391194"], ["updated_at", "2015-10-27 16:56:01.391194"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 16:56:01.392796"], ["updated_at", "2015-10-27 16:56:01.392796"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:56:01.394509"], ["updated_at", "2015-10-27 16:56:01.394509"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.401488"], ["updated_at", "2015-10-27 16:56:01.401488"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 16:56:01.405147"], ["updated_at", "2015-10-27 16:56:01.405147"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:56:01.408269"], ["updated_at", "2015-10-27 16:56:01.408269"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user16@sleede.com (1.4ms) Date: Tue, 27 Oct 2015 17:56:01 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562faca1647c8_12a0e3fe0ad4601e0702e9@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.415825"], ["updated_at", "2015-10-27 16:56:01.415825"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 16:56:01.417642"], ["updated_at", "2015-10-27 16:56:01.417642"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:56:01.419398"], ["updated_at", "2015-10-27 16:56:01.419398"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bf152644-4a85-4c46-8c46-6da7dea0476c) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] NotificationsMailer#send_mail_by: processed outbound mail in 3.7ms [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] Sent mail to user17@sleede.com (3.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] Date: Tue, 27 Oct 2015 17:56:01 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562faca16d481_12a0e3fe0ad4601e0703a9@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [bf152644-4a85-4c46-8c46-6da7dea0476c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.84ms [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.455935"], ["updated_at", "2015-10-27 16:56:01.455935"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 16:56:01.458759"], ["updated_at", "2015-10-27 16:56:01.458759"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.462222"], ["updated_at", "2015-10-27 16:56:01.462222"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 16:56:01.463867"], ["updated_at", "2015-10-27 16:56:01.463867"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.467177"], ["updated_at", "2015-10-27 16:56:01.467177"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 16:56:01.468648"], ["updated_at", "2015-10-27 16:56:01.468648"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 16:56:01.471907"], ["updated_at", "2015-10-27 16:56:01.471907"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 16:56:01.473440"], ["updated_at", "2015-10-27 16:56:01.473440"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:56:01.479452"], ["updated_at", "2015-10-27 16:56:01.479452"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 16:56:01.482954"], ["updated_at", "2015-10-27 16:56:01.482954"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 16:56:01.484448"], ["updated_at", "2015-10-27 16:56:01.484448"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 16:56:01.486505"], ["updated_at", "2015-10-27 16:56:01.486505"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 17:03:13.158212"], ["updated_at", "2015-10-27 17:03:13.158212"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.174988"], ["updated_at", "2015-10-27 17:03:13.174988"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.182729"], ["updated_at", "2015-10-27 17:03:13.182729"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 9.6ms | ActiveRecord: 0.0ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 17:03:13.223381"], ["updated_at", "2015-10-27 17:03:13.223381"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.225288"], ["updated_at", "2015-10-27 17:03:13.225288"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.227533"], ["updated_at", "2015-10-27 17:03:13.227533"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.4ms) Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.4ms) [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 17:03:13.251107"], ["updated_at", "2015-10-27 17:03:13.251107"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.253306"], ["updated_at", "2015-10-27 17:03:13.253306"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.255465"], ["updated_at", "2015-10-27 17:03:13.255465"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered api/notifications/show.json.jbuilder (7.5ms) Completed 200 OK in 19ms (Views: 11.1ms | ActiveRecord: 0.5ms) [1m[36m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 17:03:13.287839"], ["updated_at", "2015-10-27 17:03:13.287839"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.290248"], ["updated_at", "2015-10-27 17:03:13.290248"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.292253"], ["updated_at", "2015-10-27 17:03:13.292253"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.3ms) [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 17:03:13.305874"], ["updated_at", "2015-10-27 17:03:13.305874"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.307823"], ["updated_at", "2015-10-27 17:03:13.307823"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.309959"], ["updated_at", "2015-10-27 17:03:13.309959"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 17:03:13.476344"], ["updated_at", "2015-10-27 17:03:13.476344"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.478279"], ["updated_at", "2015-10-27 17:03:13.478279"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.480294"], ["updated_at", "2015-10-27 17:03:13.480294"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 17:03:13.485678"], ["updated_at", "2015-10-27 17:03:13.485678"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.487534"], ["updated_at", "2015-10-27 17:03:13.487534"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.489434"], ["updated_at", "2015-10-27 17:03:13.489434"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.5ms Sent mail to user7@sleede.com (5.8ms) Date: Tue, 27 Oct 2015 18:03:13 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fae517d810_12a743fd9a8c601d08746@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 17:03:13.520229"], ["updated_at", "2015-10-27 17:03:13.520229"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.522181"], ["updated_at", "2015-10-27 17:03:13.522181"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.523929"], ["updated_at", "2015-10-27 17:03:13.523929"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user8@sleede.com (2.6ms) Date: Tue, 27 Oct 2015 18:03:13 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fae5180e54_12a743fd9a8c601d0875a6@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 17:03:13.532697"], ["updated_at", "2015-10-27 17:03:13.532697"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.534496"], ["updated_at", "2015-10-27 17:03:13.534496"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.536199"], ["updated_at", "2015-10-27 17:03:13.536199"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.9ms Sent mail to user9@sleede.com (4.2ms) Date: Tue, 27 Oct 2015 18:03:13 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fae51848a8_12a743fd9a8c601d0876f5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 17:03:13.551591"], ["updated_at", "2015-10-27 17:03:13.551591"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.553603"], ["updated_at", "2015-10-27 17:03:13.553603"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:03:13.555176"], ["updated_at", "2015-10-27 17:03:13.555176"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user10@sleede.com (1.7ms) Date: Tue, 27 Oct 2015 18:03:13 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fae51887bf_12a743fd9a8c601d087729@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.563117"], ["updated_at", "2015-10-27 17:03:13.563117"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 17:03:13.565300"], ["updated_at", "2015-10-27 17:03:13.565300"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:03:13.567814"], ["updated_at", "2015-10-27 17:03:13.567814"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.571613"], ["updated_at", "2015-10-27 17:03:13.571613"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 17:03:13.573584"], ["updated_at", "2015-10-27 17:03:13.573584"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.579503"], ["updated_at", "2015-10-27 17:03:13.579503"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 17:03:13.583029"], ["updated_at", "2015-10-27 17:03:13.583029"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.590829"], ["updated_at", "2015-10-27 17:03:13.590829"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 17:03:13.597426"], ["updated_at", "2015-10-27 17:03:13.597426"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.605424"], ["updated_at", "2015-10-27 17:03:13.605424"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 17:03:13.607620"], ["updated_at", "2015-10-27 17:03:13.607620"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:03:13.610269"], ["updated_at", "2015-10-27 17:03:13.610269"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.615191"], ["updated_at", "2015-10-27 17:03:13.615191"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 17:03:13.617233"], ["updated_at", "2015-10-27 17:03:13.617233"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:03:13.619449"], ["updated_at", "2015-10-27 17:03:13.619449"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user16@sleede.com (1.6ms) Date: Tue, 27 Oct 2015 18:03:13 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562fae51981ba_12a743fd9a8c601d0878f4@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.626911"], ["updated_at", "2015-10-27 17:03:13.626911"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 17:03:13.630363"], ["updated_at", "2015-10-27 17:03:13.630363"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:03:13.633366"], ["updated_at", "2015-10-27 17:03:13.633366"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d916d018-a5e4-4899-8ea5-4813e23d9f2b) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] NotificationsMailer#send_mail_by: processed outbound mail in 3.1ms [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] Sent mail to user17@sleede.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] Date: Tue, 27 Oct 2015 18:03:13 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562fae51a2bd7_12a743fd9a8c601d087956@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [d916d018-a5e4-4899-8ea5-4813e23d9f2b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.95ms [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.669677"], ["updated_at", "2015-10-27 17:03:13.669677"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 17:03:13.671192"], ["updated_at", "2015-10-27 17:03:13.671192"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.674425"], ["updated_at", "2015-10-27 17:03:13.674425"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 17:03:13.676212"], ["updated_at", "2015-10-27 17:03:13.676212"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.680152"], ["updated_at", "2015-10-27 17:03:13.680152"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 17:03:13.681984"], ["updated_at", "2015-10-27 17:03:13.681984"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:03:13.685620"], ["updated_at", "2015-10-27 17:03:13.685620"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 17:03:13.687464"], ["updated_at", "2015-10-27 17:03:13.687464"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:03:13.693302"], ["updated_at", "2015-10-27 17:03:13.693302"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:03:13.697713"], ["updated_at", "2015-10-27 17:03:13.697713"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 17:03:13.699809"], ["updated_at", "2015-10-27 17:03:13.699809"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:03:13.702500"], ["updated_at", "2015-10-27 17:03:13.702500"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150216115438') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 17:07:32.739127"], ["updated_at", "2015-10-27 17:07:32.739127"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:32.755474"], ["updated_at", "2015-10-27 17:07:32.755474"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:32.759823"], ["updated_at", "2015-10-27 17:07:32.759823"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 21ms (Views: 9.6ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 17:07:32.803592"], ["updated_at", "2015-10-27 17:07:32.803592"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:32.805455"], ["updated_at", "2015-10-27 17:07:32.805455"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:32.806985"], ["updated_at", "2015-10-27 17:07:32.806985"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.3ms) Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.3ms) [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 17:07:32.829952"], ["updated_at", "2015-10-27 17:07:32.829952"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:32.831752"], ["updated_at", "2015-10-27 17:07:32.831752"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:32.833301"], ["updated_at", "2015-10-27 17:07:32.833301"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.0ms) Completed 200 OK in 11ms (Views: 3.8ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 17:07:32.851293"], ["updated_at", "2015-10-27 17:07:32.851293"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:32.853025"], ["updated_at", "2015-10-27 17:07:32.853025"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:32.854789"], ["updated_at", "2015-10-27 17:07:32.854789"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.4ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 17:07:32.874869"], ["updated_at", "2015-10-27 17:07:32.874869"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:32.876695"], ["updated_at", "2015-10-27 17:07:32.876695"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:32.878226"], ["updated_at", "2015-10-27 17:07:32.878226"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 17:07:33.032008"], ["updated_at", "2015-10-27 17:07:33.032008"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:33.034096"], ["updated_at", "2015-10-27 17:07:33.034096"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:33.035700"], ["updated_at", "2015-10-27 17:07:33.035700"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 17:07:33.042059"], ["updated_at", "2015-10-27 17:07:33.042059"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.043782"], ["updated_at", "2015-10-27 17:07:33.043782"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:33.045636"], ["updated_at", "2015-10-27 17:07:33.045636"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 19.9ms Sent mail to user7@sleede.com (6.4ms) Date: Tue, 27 Oct 2015 18:07:33 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562faf5511982_12abe3fd5050601d4413fc@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 17:07:33.078774"], ["updated_at", "2015-10-27 17:07:33.078774"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.080893"], ["updated_at", "2015-10-27 17:07:33.080893"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:33.082905"], ["updated_at", "2015-10-27 17:07:33.082905"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user8@sleede.com (1.6ms) Date: Tue, 27 Oct 2015 18:07:33 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562faf5515124_12abe3fd5050601d44145c@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 17:07:33.093081"], ["updated_at", "2015-10-27 17:07:33.093081"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.096506"], ["updated_at", "2015-10-27 17:07:33.096506"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:33.099976"], ["updated_at", "2015-10-27 17:07:33.099976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 18:07:33 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562faf55193c6_12abe3fd5050601d441548@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 17:07:33.106554"], ["updated_at", "2015-10-27 17:07:33.106554"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.108072"], ["updated_at", "2015-10-27 17:07:33.108072"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:07:33.109590"], ["updated_at", "2015-10-27 17:07:33.109590"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 18:07:33 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562faf551b7f3_12abe3fd5050601d4416d7@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:33.116010"], ["updated_at", "2015-10-27 17:07:33.116010"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 17:07:33.117506"], ["updated_at", "2015-10-27 17:07:33.117506"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:07:33.119260"], ["updated_at", "2015-10-27 17:07:33.119260"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.122291"], ["updated_at", "2015-10-27 17:07:33.122291"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 17:07:33.123857"], ["updated_at", "2015-10-27 17:07:33.123857"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.129701"], ["updated_at", "2015-10-27 17:07:33.129701"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 17:07:33.131620"], ["updated_at", "2015-10-27 17:07:33.131620"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.136626"], ["updated_at", "2015-10-27 17:07:33.136626"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 17:07:33.140034"], ["updated_at", "2015-10-27 17:07:33.140034"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.149483"], ["updated_at", "2015-10-27 17:07:33.149483"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 17:07:33.150974"], ["updated_at", "2015-10-27 17:07:33.150974"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:07:33.152504"], ["updated_at", "2015-10-27 17:07:33.152504"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.155412"], ["updated_at", "2015-10-27 17:07:33.155412"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 17:07:33.156786"], ["updated_at", "2015-10-27 17:07:33.156786"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:07:33.158627"], ["updated_at", "2015-10-27 17:07:33.158627"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user16@sleede.com (1.3ms) Date: Tue, 27 Oct 2015 18:07:33 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562faf5527731_12abe3fd5050601d4417cc@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.165346"], ["updated_at", "2015-10-27 17:07:33.165346"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 17:07:33.166853"], ["updated_at", "2015-10-27 17:07:33.166853"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:07:33.168818"], ["updated_at", "2015-10-27 17:07:33.168818"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 49a11863-db07-4a12-8195-5dfb44b5618b) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] NotificationsMailer#send_mail_by: processed outbound mail in 6.0ms [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] Sent mail to user17@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] Date: Tue, 27 Oct 2015 18:07:33 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562faf55310ca_12abe3fd5050601d4418e3@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [49a11863-db07-4a12-8195-5dfb44b5618b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.04ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:33.204097"], ["updated_at", "2015-10-27 17:07:33.204097"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 17:07:33.205771"], ["updated_at", "2015-10-27 17:07:33.205771"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:33.208836"], ["updated_at", "2015-10-27 17:07:33.208836"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 17:07:33.210267"], ["updated_at", "2015-10-27 17:07:33.210267"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:33.213458"], ["updated_at", "2015-10-27 17:07:33.213458"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 17:07:33.214941"], ["updated_at", "2015-10-27 17:07:33.214941"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:07:33.218021"], ["updated_at", "2015-10-27 17:07:33.218021"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 17:07:33.219345"], ["updated_at", "2015-10-27 17:07:33.219345"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:07:33.225997"], ["updated_at", "2015-10-27 17:07:33.225997"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:07:33.230010"], ["updated_at", "2015-10-27 17:07:33.230010"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 17:07:33.231665"], ["updated_at", "2015-10-27 17:07:33.231665"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:07:33.233458"], ["updated_at", "2015-10-27 17:07:33.233458"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.3ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.9ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[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 ('20150216115438') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-27 17:10:30.659089"], ["updated_at", "2015-10-27 17:10:30.659089"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:30.687562"], ["updated_at", "2015-10-27 17:10:30.687562"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:30.691120"], ["updated_at", "2015-10-27 17:10:30.691120"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 22ms (Views: 9.9ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-27 17:10:30.736061"], ["updated_at", "2015-10-27 17:10:30.736061"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:30.738790"], ["updated_at", "2015-10-27 17:10:30.738790"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:30.740614"], ["updated_at", "2015-10-27 17:10:30.740614"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.7ms) Rendered api/notifications/index.json.jbuilder (15.5ms) Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms) [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.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-27 17:10:30.767070"], ["updated_at", "2015-10-27 17:10:30.767070"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:30.770626"], ["updated_at", "2015-10-27 17:10:30.770626"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:30.773383"], ["updated_at", "2015-10-27 17:10:30.773383"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.6ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (3.4ms) Completed 200 OK in 20ms (Views: 9.9ms | ActiveRecord: 0.6ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-27 17:10:30.803020"], ["updated_at", "2015-10-27 17:10:30.803020"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:30.806213"], ["updated_at", "2015-10-27 17:10:30.806213"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:30.807805"], ["updated_at", "2015-10-27 17:10:30.807805"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.5ms) Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-27 17:10:30.820386"], ["updated_at", "2015-10-27 17:10:30.820386"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:30.824291"], ["updated_at", "2015-10-27 17:10:30.824291"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:30.827320"], ["updated_at", "2015-10-27 17:10:30.827320"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.3ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.4ms) [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-27 17:10:31.021038"], ["updated_at", "2015-10-27 17:10:31.021038"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:31.023580"], ["updated_at", "2015-10-27 17:10:31.023580"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:31.025420"], ["updated_at", "2015-10-27 17:10:31.025420"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-27 17:10:31.030874"], ["updated_at", "2015-10-27 17:10:31.030874"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.032444"], ["updated_at", "2015-10-27 17:10:31.032444"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:31.035780"], ["updated_at", "2015-10-27 17:10:31.035780"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 21.3ms Sent mail to user7@sleede.com (8.7ms) Date: Tue, 27 Oct 2015 18:10:31 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <562fb007fc38_12af83fe6e88341e035344@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-27 17:10:31.073203"], ["updated_at", "2015-10-27 17:10:31.073203"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.075670"], ["updated_at", "2015-10-27 17:10:31.075670"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:31.079180"], ["updated_at", "2015-10-27 17:10:31.079180"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.4ms Sent mail to user8@sleede.com (2.7ms) Date: Tue, 27 Oct 2015 18:10:31 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <562fb00715ec2_12af83fe6e88341e0354e4@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-27 17:10:31.095126"], ["updated_at", "2015-10-27 17:10:31.095126"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.097099"], ["updated_at", "2015-10-27 17:10:31.097099"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:31.099411"], ["updated_at", "2015-10-27 17:10:31.099411"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.2ms Sent mail to user9@sleede.com (1.6ms) Date: Tue, 27 Oct 2015 18:10:31 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <562fb0071988f_12af83fe6e88341e03554@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-27 17:10:31.108068"], ["updated_at", "2015-10-27 17:10:31.108068"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.109785"], ["updated_at", "2015-10-27 17:10:31.109785"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-27 17:10:31.111667"], ["updated_at", "2015-10-27 17:10:31.111667"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (4.1ms) Date: Tue, 27 Oct 2015 18:10:31 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <562fb0071c9c6_12af83fe6e88341e0356e5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:31.122332"], ["updated_at", "2015-10-27 17:10:31.122332"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-27 17:10:31.124948"], ["updated_at", "2015-10-27 17:10:31.124948"]] [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 [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:10:31.127706"], ["updated_at", "2015-10-27 17:10:31.127706"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.130891"], ["updated_at", "2015-10-27 17:10:31.130891"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-27 17:10:31.134509"], ["updated_at", "2015-10-27 17:10:31.134509"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.146537"], ["updated_at", "2015-10-27 17:10:31.146537"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-27 17:10:31.148669"], ["updated_at", "2015-10-27 17:10:31.148669"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.153291"], ["updated_at", "2015-10-27 17:10:31.153291"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-27 17:10:31.155009"], ["updated_at", "2015-10-27 17:10:31.155009"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.159810"], ["updated_at", "2015-10-27 17:10:31.159810"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-27 17:10:31.161816"], ["updated_at", "2015-10-27 17:10:31.161816"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:10:31.163813"], ["updated_at", "2015-10-27 17:10:31.163813"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.167775"], ["updated_at", "2015-10-27 17:10:31.167775"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-27 17:10:31.169750"], ["updated_at", "2015-10-27 17:10:31.169750"]] [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 "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:10:31.173620"], ["updated_at", "2015-10-27 17:10:31.173620"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.7ms Sent mail to user16@sleede.com (2.5ms) Date: Tue, 27 Oct 2015 18:10:31 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <562fb0072bdf1_12af83fe6e88341e03572d@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.188094"], ["updated_at", "2015-10-27 17:10:31.188094"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-27 17:10:31.195375"], ["updated_at", "2015-10-27 17:10:31.195375"]] [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 INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:10:31.197889"], ["updated_at", "2015-10-27 17:10:31.197889"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e6fbb834-74b5-4d36-9d22-9b3c6f38d545) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] NotificationsMailer#send_mail_by: processed outbound mail in 3.0ms [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] Sent mail to user17@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] Date: Tue, 27 Oct 2015 18:10:31 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <562fb0073574f_12af83fe6e88341e0358bb@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [e6fbb834-74b5-4d36-9d22-9b3c6f38d545] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.69ms [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:31.223244"], ["updated_at", "2015-10-27 17:10:31.223244"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-27 17:10:31.225312"], ["updated_at", "2015-10-27 17:10:31.225312"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:31.230208"], ["updated_at", "2015-10-27 17:10:31.230208"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-27 17:10:31.233224"], ["updated_at", "2015-10-27 17:10:31.233224"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:31.245143"], ["updated_at", "2015-10-27 17:10:31.245143"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-27 17:10:31.247563"], ["updated_at", "2015-10-27 17:10:31.247563"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-27 17:10:31.251815"], ["updated_at", "2015-10-27 17:10:31.251815"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-27 17:10:31.253721"], ["updated_at", "2015-10-27 17:10:31.253721"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:10:31.259777"], ["updated_at", "2015-10-27 17:10:31.259777"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-27 17:10:31.263712"], ["updated_at", "2015-10-27 17:10:31.263712"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-27 17:10:31.265879"], ["updated_at", "2015-10-27 17:10:31.265879"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-27 17:10:31.268295"], ["updated_at", "2015-10-27 17:10:31.268295"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (2.4ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (2.5ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (1.4ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:13:15.998011"], ["updated_at", "2015-10-28 11:13:15.998011"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.016214"], ["updated_at", "2015-10-28 11:13:16.016214"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:13:16.031898"], ["updated_at", "2015-10-28 11:13:16.031898"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.034415"], ["updated_at", "2015-10-28 11:13:16.034415"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:13:16.051067"], ["updated_at", "2015-10-28 11:13:16.051067"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.057106"], ["updated_at", "2015-10-28 11:13:16.057106"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:13:16.070956"], ["updated_at", "2015-10-28 11:13:16.070956"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.075749"], ["updated_at", "2015-10-28 11:13:16.075749"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:13:16.100280"], ["updated_at", "2015-10-28 11:13:16.100280"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.105614"], ["updated_at", "2015-10-28 11:13:16.105614"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:13:16.291953"], ["updated_at", "2015-10-28 11:13:16.291953"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.294270"], ["updated_at", "2015-10-28 11:13:16.294270"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:13:16.307567"], ["updated_at", "2015-10-28 11:13:16.307567"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.313860"], ["updated_at", "2015-10-28 11:13:16.313860"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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 (1.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:13:16.327681"], ["updated_at", "2015-10-28 11:13:16.327681"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.333631"], ["updated_at", "2015-10-28 11:13:16.333631"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:13:16.360010"], ["updated_at", "2015-10-28 11:13:16.360010"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.362045"], ["updated_at", "2015-10-28 11:13:16.362045"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:13:16.383799"], ["updated_at", "2015-10-28 11:13:16.383799"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.393049"], ["updated_at", "2015-10-28 11:13:16.393049"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.404230"], ["updated_at", "2015-10-28 11:13:16.404230"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:13:16.405991"], ["updated_at", "2015-10-28 11:13:16.405991"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.423657"], ["updated_at", "2015-10-28 11:13:16.423657"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:13:16.425687"], ["updated_at", "2015-10-28 11:13:16.425687"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.442408"], ["updated_at", "2015-10-28 11:13:16.442408"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:13:16.447745"], ["updated_at", "2015-10-28 11:13:16.447745"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.457151"], ["updated_at", "2015-10-28 11:13:16.457151"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:13:16.459057"], ["updated_at", "2015-10-28 11:13:16.459057"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.466516"], ["updated_at", "2015-10-28 11:13:16.466516"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:13:16.468614"], ["updated_at", "2015-10-28 11:13:16.468614"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.479554"], ["updated_at", "2015-10-28 11:13:16.479554"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:13:16.486463"], ["updated_at", "2015-10-28 11:13:16.486463"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.502146"], ["updated_at", "2015-10-28 11:13:16.502146"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:13:16.508121"], ["updated_at", "2015-10-28 11:13:16.508121"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.522657"], ["updated_at", "2015-10-28 11:13:16.522657"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:13:16.524531"], ["updated_at", "2015-10-28 11:13:16.524531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:13:16.571547"], ["updated_at", "2015-10-28 11:13:16.571547"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:13:16.574186"], ["updated_at", "2015-10-28 11:13:16.574186"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.586089"], ["updated_at", "2015-10-28 11:13:16.586089"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:13:16.591222"], ["updated_at", "2015-10-28 11:13:16.591222"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (4.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.603436"], ["updated_at", "2015-10-28 11:13:16.603436"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:13:16.606161"], ["updated_at", "2015-10-28 11:13:16.606161"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:13:16.642560"], ["updated_at", "2015-10-28 11:13:16.642560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:13:16.644614"], ["updated_at", "2015-10-28 11:13:16.644614"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mNotifyWith::NotificationType Load (0.5ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:14:49.495775"], ["updated_at", "2015-10-28 11:14:49.495775"]] [1m[35m (0.7ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.5ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (2.3ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (2.0ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:14:50.935926"], ["updated_at", "2015-10-28 11:14:50.935926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:50.954431"], ["updated_at", "2015-10-28 11:14:50.954431"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:50.956997"], ["updated_at", "2015-10-28 11:14:50.956997"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:14:50.976283"], ["updated_at", "2015-10-28 11:14:50.976283"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:50.980815"], ["updated_at", "2015-10-28 11:14:50.980815"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:50.988180"], ["updated_at", "2015-10-28 11:14:50.988180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:14:50.992798"], ["updated_at", "2015-10-28 11:14:50.992798"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:50.996836"], ["updated_at", "2015-10-28 11:14:50.996836"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:50.998617"], ["updated_at", "2015-10-28 11:14:50.998617"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:14:51.002693"], ["updated_at", "2015-10-28 11:14:51.002693"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.005615"], ["updated_at", "2015-10-28 11:14:51.005615"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:51.009985"], ["updated_at", "2015-10-28 11:14:51.009985"]] [1m[36m (0.1ms)[0m [1mRELEASE 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 (1.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:14:51.016525"], ["updated_at", "2015-10-28 11:14:51.016525"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.020680"], ["updated_at", "2015-10-28 11:14:51.020680"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:51.027212"], ["updated_at", "2015-10-28 11:14:51.027212"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:14:51.193127"], ["updated_at", "2015-10-28 11:14:51.193127"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.195240"], ["updated_at", "2015-10-28 11:14:51.195240"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:51.196988"], ["updated_at", "2015-10-28 11:14:51.196988"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:14:51.206560"], ["updated_at", "2015-10-28 11:14:51.206560"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.208743"], ["updated_at", "2015-10-28 11:14:51.208743"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:51.211143"], ["updated_at", "2015-10-28 11:14:51.211143"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 7.2ms [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:14:51.228019"], ["updated_at", "2015-10-28 11:14:51.228019"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.233037"], ["updated_at", "2015-10-28 11:14:51.233037"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:51.235904"], ["updated_at", "2015-10-28 11:14:51.235904"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.6ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:14:51.253000"], ["updated_at", "2015-10-28 11:14:51.253000"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.256007"], ["updated_at", "2015-10-28 11:14:51.256007"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:51.259105"], ["updated_at", "2015-10-28 11:14:51.259105"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (4.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:14:51.271049"], ["updated_at", "2015-10-28 11:14:51.271049"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.278832"], ["updated_at", "2015-10-28 11:14:51.278832"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:14:51.284051"], ["updated_at", "2015-10-28 11:14:51.284051"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.297615"], ["updated_at", "2015-10-28 11:14:51.297615"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:14:51.301684"], ["updated_at", "2015-10-28 11:14:51.301684"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.346322"], ["updated_at", "2015-10-28 11:14:51.346322"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:14:51.348519"], ["updated_at", "2015-10-28 11:14:51.348519"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [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.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.357741"], ["updated_at", "2015-10-28 11:14:51.357741"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:14:51.361107"], ["updated_at", "2015-10-28 11:14:51.361107"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.368452"], ["updated_at", "2015-10-28 11:14:51.368452"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:14:51.370168"], ["updated_at", "2015-10-28 11:14:51.370168"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.379442"], ["updated_at", "2015-10-28 11:14:51.379442"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:14:51.383752"], ["updated_at", "2015-10-28 11:14:51.383752"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.393582"], ["updated_at", "2015-10-28 11:14:51.393582"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:14:51.397582"], ["updated_at", "2015-10-28 11:14:51.397582"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.414426"], ["updated_at", "2015-10-28 11:14:51.414426"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:14:51.419516"], ["updated_at", "2015-10-28 11:14:51.419516"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.442100"], ["updated_at", "2015-10-28 11:14:51.442100"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:14:51.446563"], ["updated_at", "2015-10-28 11:14:51.446563"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.451472"], ["updated_at", "2015-10-28 11:14:51.451472"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:14:51.453546"], ["updated_at", "2015-10-28 11:14:51.453546"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.460324"], ["updated_at", "2015-10-28 11:14:51.460324"]] [1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:14:51.465983"], ["updated_at", "2015-10-28 11:14:51.465983"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:14:51.475011"], ["updated_at", "2015-10-28 11:14:51.475011"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:14:51.479243"], ["updated_at", "2015-10-28 11:14:51.479243"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:14:51.496815"], ["updated_at", "2015-10-28 11:14:51.496815"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:14:51.500370"], ["updated_at", "2015-10-28 11:14:51.500370"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.5ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.6ms)[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[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:17:19.709514"], ["updated_at", "2015-10-28 11:17:19.709514"]] [1m[35m (0.7ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.4ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:17:21.148100"], ["updated_at", "2015-10-28 11:17:21.148100"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.163089"], ["updated_at", "2015-10-28 11:17:21.163089"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.165199"], ["updated_at", "2015-10-28 11:17:21.165199"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 25ms (Views: 13.4ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:17:21.209747"], ["updated_at", "2015-10-28 11:17:21.209747"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.211426"], ["updated_at", "2015-10-28 11:17:21.211426"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.212861"], ["updated_at", "2015-10-28 11:17:21.212861"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (11.9ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:17:21.232490"], ["updated_at", "2015-10-28 11:17:21.232490"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.234210"], ["updated_at", "2015-10-28 11:17:21.234210"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.235698"], ["updated_at", "2015-10-28 11:17:21.235698"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.1ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:17:21.249977"], ["updated_at", "2015-10-28 11:17:21.249977"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.251886"], ["updated_at", "2015-10-28 11:17:21.251886"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.254083"], ["updated_at", "2015-10-28 11:17:21.254083"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.7ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:17:21.270761"], ["updated_at", "2015-10-28 11:17:21.270761"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.275024"], ["updated_at", "2015-10-28 11:17:21.275024"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.276884"], ["updated_at", "2015-10-28 11:17:21.276884"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:17:21.423008"], ["updated_at", "2015-10-28 11:17:21.423008"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.424706"], ["updated_at", "2015-10-28 11:17:21.424706"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.426084"], ["updated_at", "2015-10-28 11:17:21.426084"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:17:21.431120"], ["updated_at", "2015-10-28 11:17:21.431120"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.432882"], ["updated_at", "2015-10-28 11:17:21.432882"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.434408"], ["updated_at", "2015-10-28 11:17:21.434408"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:17:21.440977"], ["updated_at", "2015-10-28 11:17:21.440977"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.442784"], ["updated_at", "2015-10-28 11:17:21.442784"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.444241"], ["updated_at", "2015-10-28 11:17:21.444241"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:17:21.448505"], ["updated_at", "2015-10-28 11:17:21.448505"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.450373"], ["updated_at", "2015-10-28 11:17:21.450373"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.451903"], ["updated_at", "2015-10-28 11:17:21.451903"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:17:21.456047"], ["updated_at", "2015-10-28 11:17:21.456047"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.457546"], ["updated_at", "2015-10-28 11:17:21.457546"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:17:21.458848"], ["updated_at", "2015-10-28 11:17:21.458848"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.462847"], ["updated_at", "2015-10-28 11:17:21.462847"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:17:21.464999"], ["updated_at", "2015-10-28 11:17:21.464999"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.502846"], ["updated_at", "2015-10-28 11:17:21.502846"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:17:21.504468"], ["updated_at", "2015-10-28 11:17:21.504468"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.508817"], ["updated_at", "2015-10-28 11:17:21.508817"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:17:21.510463"], ["updated_at", "2015-10-28 11:17:21.510463"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.515013"], ["updated_at", "2015-10-28 11:17:21.515013"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:17:21.516413"], ["updated_at", "2015-10-28 11:17:21.516413"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.520461"], ["updated_at", "2015-10-28 11:17:21.520461"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:17:21.521913"], ["updated_at", "2015-10-28 11:17:21.521913"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.526219"], ["updated_at", "2015-10-28 11:17:21.526219"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:17:21.527670"], ["updated_at", "2015-10-28 11:17:21.527670"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.532013"], ["updated_at", "2015-10-28 11:17:21.532013"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:17:21.533413"], ["updated_at", "2015-10-28 11:17:21.533413"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.550903"], ["updated_at", "2015-10-28 11:17:21.550903"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:17:21.553394"], ["updated_at", "2015-10-28 11:17:21.553394"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.561746"], ["updated_at", "2015-10-28 11:17:21.561746"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:17:21.564827"], ["updated_at", "2015-10-28 11:17:21.564827"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.568551"], ["updated_at", "2015-10-28 11:17:21.568551"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:17:21.570107"], ["updated_at", "2015-10-28 11:17:21.570107"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:17:21.573345"], ["updated_at", "2015-10-28 11:17:21.573345"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:17:21.574872"], ["updated_at", "2015-10-28 11:17:21.574872"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:17:21.583610"], ["updated_at", "2015-10-28 11:17:21.583610"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:17:21.585243"], ["updated_at", "2015-10-28 11:17:21.585243"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:19:30.016988"], ["updated_at", "2015-10-28 11:19:30.016988"]] [1m[35m (0.9ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:19:31.476244"], ["updated_at", "2015-10-28 11:19:31.476244"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.499278"], ["updated_at", "2015-10-28 11:19:31.499278"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.501059"], ["updated_at", "2015-10-28 11:19:31.501059"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 8.9ms | ActiveRecord: 0.0ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:19:31.543325"], ["updated_at", "2015-10-28 11:19:31.543325"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.544946"], ["updated_at", "2015-10-28 11:19:31.544946"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.546332"], ["updated_at", "2015-10-28 11:19:31.546332"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (10.8ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:19:31.565073"], ["updated_at", "2015-10-28 11:19:31.565073"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.567051"], ["updated_at", "2015-10-28 11:19:31.567051"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.568648"], ["updated_at", "2015-10-28 11:19:31.568648"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.2ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:19:31.581678"], ["updated_at", "2015-10-28 11:19:31.581678"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.583516"], ["updated_at", "2015-10-28 11:19:31.583516"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.585279"], ["updated_at", "2015-10-28 11:19:31.585279"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.7ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.6ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:19:31.604778"], ["updated_at", "2015-10-28 11:19:31.604778"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.606352"], ["updated_at", "2015-10-28 11:19:31.606352"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.607715"], ["updated_at", "2015-10-28 11:19:31.607715"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:19:31.763266"], ["updated_at", "2015-10-28 11:19:31.763266"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.764939"], ["updated_at", "2015-10-28 11:19:31.764939"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.766252"], ["updated_at", "2015-10-28 11:19:31.766252"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:19:31.771245"], ["updated_at", "2015-10-28 11:19:31.771245"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.772752"], ["updated_at", "2015-10-28 11:19:31.772752"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.774107"], ["updated_at", "2015-10-28 11:19:31.774107"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:19:31.780160"], ["updated_at", "2015-10-28 11:19:31.780160"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.781795"], ["updated_at", "2015-10-28 11:19:31.781795"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.783270"], ["updated_at", "2015-10-28 11:19:31.783270"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:19:31.787709"], ["updated_at", "2015-10-28 11:19:31.787709"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.789565"], ["updated_at", "2015-10-28 11:19:31.789565"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.791009"], ["updated_at", "2015-10-28 11:19:31.791009"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:19:31.795052"], ["updated_at", "2015-10-28 11:19:31.795052"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.796543"], ["updated_at", "2015-10-28 11:19:31.796543"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:19:31.797861"], ["updated_at", "2015-10-28 11:19:31.797861"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.801286"], ["updated_at", "2015-10-28 11:19:31.801286"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:19:31.802733"], ["updated_at", "2015-10-28 11:19:31.802733"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.838904"], ["updated_at", "2015-10-28 11:19:31.838904"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:19:31.840835"], ["updated_at", "2015-10-28 11:19:31.840835"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL 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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.845570"], ["updated_at", "2015-10-28 11:19:31.845570"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:19:31.847223"], ["updated_at", "2015-10-28 11:19:31.847223"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.851942"], ["updated_at", "2015-10-28 11:19:31.851942"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:19:31.853399"], ["updated_at", "2015-10-28 11:19:31.853399"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.857800"], ["updated_at", "2015-10-28 11:19:31.857800"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:19:31.859526"], ["updated_at", "2015-10-28 11:19:31.859526"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.863718"], ["updated_at", "2015-10-28 11:19:31.863718"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:19:31.865153"], ["updated_at", "2015-10-28 11:19:31.865153"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.869764"], ["updated_at", "2015-10-28 11:19:31.869764"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:19:31.871221"], ["updated_at", "2015-10-28 11:19:31.871221"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.896336"], ["updated_at", "2015-10-28 11:19:31.896336"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:19:31.898123"], ["updated_at", "2015-10-28 11:19:31.898123"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.901381"], ["updated_at", "2015-10-28 11:19:31.901381"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:19:31.903159"], ["updated_at", "2015-10-28 11:19:31.903159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.906891"], ["updated_at", "2015-10-28 11:19:31.906891"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:19:31.908630"], ["updated_at", "2015-10-28 11:19:31.908630"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:19:31.911742"], ["updated_at", "2015-10-28 11:19:31.911742"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:19:31.913108"], ["updated_at", "2015-10-28 11:19:31.913108"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:19:31.922045"], ["updated_at", "2015-10-28 11:19:31.922045"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:19:31.923453"], ["updated_at", "2015-10-28 11:19:31.923453"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:20:55.706071"], ["updated_at", "2015-10-28 11:20:55.706071"]] [1m[35m (8.4ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:20:57.097824"], ["updated_at", "2015-10-28 11:20:57.097824"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.112115"], ["updated_at", "2015-10-28 11:20:57.112115"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.114533"], ["updated_at", "2015-10-28 11:20:57.114533"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 20ms (Views: 9.5ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:20:57.157862"], ["updated_at", "2015-10-28 11:20:57.157862"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.159491"], ["updated_at", "2015-10-28 11:20:57.159491"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.160890"], ["updated_at", "2015-10-28 11:20:57.160890"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (12.1ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:20:57.180416"], ["updated_at", "2015-10-28 11:20:57.180416"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.182024"], ["updated_at", "2015-10-28 11:20:57.182024"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.183472"], ["updated_at", "2015-10-28 11:20:57.183472"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.7ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:20:57.196643"], ["updated_at", "2015-10-28 11:20:57.196643"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.198488"], ["updated_at", "2015-10-28 11:20:57.198488"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.200324"], ["updated_at", "2015-10-28 11:20:57.200324"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.3ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:20:57.214325"], ["updated_at", "2015-10-28 11:20:57.214325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.220087"], ["updated_at", "2015-10-28 11:20:57.220087"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.223612"], ["updated_at", "2015-10-28 11:20:57.223612"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:20:57.380149"], ["updated_at", "2015-10-28 11:20:57.380149"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.381956"], ["updated_at", "2015-10-28 11:20:57.381956"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.383443"], ["updated_at", "2015-10-28 11:20:57.383443"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:20:57.388529"], ["updated_at", "2015-10-28 11:20:57.388529"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.390014"], ["updated_at", "2015-10-28 11:20:57.390014"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.391378"], ["updated_at", "2015-10-28 11:20:57.391378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:20:57.397700"], ["updated_at", "2015-10-28 11:20:57.397700"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.399356"], ["updated_at", "2015-10-28 11:20:57.399356"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.400873"], ["updated_at", "2015-10-28 11:20:57.400873"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:20:57.405016"], ["updated_at", "2015-10-28 11:20:57.405016"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.406802"], ["updated_at", "2015-10-28 11:20:57.406802"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.408312"], ["updated_at", "2015-10-28 11:20:57.408312"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:20:57.412528"], ["updated_at", "2015-10-28 11:20:57.412528"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.414029"], ["updated_at", "2015-10-28 11:20:57.414029"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:20:57.415338"], ["updated_at", "2015-10-28 11:20:57.415338"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.419062"], ["updated_at", "2015-10-28 11:20:57.419062"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:20:57.420463"], ["updated_at", "2015-10-28 11:20:57.420463"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.457225"], ["updated_at", "2015-10-28 11:20:57.457225"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:20:57.459011"], ["updated_at", "2015-10-28 11:20:57.459011"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.463532"], ["updated_at", "2015-10-28 11:20:57.463532"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:20:57.465026"], ["updated_at", "2015-10-28 11:20:57.465026"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.469699"], ["updated_at", "2015-10-28 11:20:57.469699"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:20:57.471434"], ["updated_at", "2015-10-28 11:20:57.471434"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.476851"], ["updated_at", "2015-10-28 11:20:57.476851"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:20:57.478278"], ["updated_at", "2015-10-28 11:20:57.478278"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.482127"], ["updated_at", "2015-10-28 11:20:57.482127"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:20:57.483648"], ["updated_at", "2015-10-28 11:20:57.483648"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.489014"], ["updated_at", "2015-10-28 11:20:57.489014"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:20:57.490439"], ["updated_at", "2015-10-28 11:20:57.490439"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.509290"], ["updated_at", "2015-10-28 11:20:57.509290"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:20:57.513050"], ["updated_at", "2015-10-28 11:20:57.513050"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.521961"], ["updated_at", "2015-10-28 11:20:57.521961"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:20:57.523551"], ["updated_at", "2015-10-28 11:20:57.523551"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.527251"], ["updated_at", "2015-10-28 11:20:57.527251"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:20:57.528856"], ["updated_at", "2015-10-28 11:20:57.528856"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:20:57.532152"], ["updated_at", "2015-10-28 11:20:57.532152"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:20:57.533639"], ["updated_at", "2015-10-28 11:20:57.533639"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:20:57.541624"], ["updated_at", "2015-10-28 11:20:57.541624"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:20:57.543149"], ["updated_at", "2015-10-28 11:20:57.543149"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:24:58.391173"], ["updated_at", "2015-10-28 11:24:58.391173"]] [1m[35m (0.8ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:24:59.828730"], ["updated_at", "2015-10-28 11:24:59.828730"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:24:59.843092"], ["updated_at", "2015-10-28 11:24:59.843092"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:24:59.845711"], ["updated_at", "2015-10-28 11:24:59.845711"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 20ms (Views: 9.8ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:24:59.889155"], ["updated_at", "2015-10-28 11:24:59.889155"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:24:59.890804"], ["updated_at", "2015-10-28 11:24:59.890804"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:24:59.892152"], ["updated_at", "2015-10-28 11:24:59.892152"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (11.8ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:24:59.911842"], ["updated_at", "2015-10-28 11:24:59.911842"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:24:59.913585"], ["updated_at", "2015-10-28 11:24:59.913585"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:24:59.915225"], ["updated_at", "2015-10-28 11:24:59.915225"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.0ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:24:59.929696"], ["updated_at", "2015-10-28 11:24:59.929696"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:24:59.932035"], ["updated_at", "2015-10-28 11:24:59.932035"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:24:59.934096"], ["updated_at", "2015-10-28 11:24:59.934096"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.4ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.6ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:24:59.952746"], ["updated_at", "2015-10-28 11:24:59.952746"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:24:59.954271"], ["updated_at", "2015-10-28 11:24:59.954271"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:24:59.955643"], ["updated_at", "2015-10-28 11:24:59.955643"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:25:00.112050"], ["updated_at", "2015-10-28 11:25:00.112050"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.113769"], ["updated_at", "2015-10-28 11:25:00.113769"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:25:00.115319"], ["updated_at", "2015-10-28 11:25:00.115319"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:25:00.120191"], ["updated_at", "2015-10-28 11:25:00.120191"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.121831"], ["updated_at", "2015-10-28 11:25:00.121831"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:25:00.123279"], ["updated_at", "2015-10-28 11:25:00.123279"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:25:00.129871"], ["updated_at", "2015-10-28 11:25:00.129871"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.131569"], ["updated_at", "2015-10-28 11:25:00.131569"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:25:00.133106"], ["updated_at", "2015-10-28 11:25:00.133106"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:25:00.137775"], ["updated_at", "2015-10-28 11:25:00.137775"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.139662"], ["updated_at", "2015-10-28 11:25:00.139662"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:25:00.141177"], ["updated_at", "2015-10-28 11:25:00.141177"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:25:00.145365"], ["updated_at", "2015-10-28 11:25:00.145365"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.146827"], ["updated_at", "2015-10-28 11:25:00.146827"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:25:00.148144"], ["updated_at", "2015-10-28 11:25:00.148144"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.151804"], ["updated_at", "2015-10-28 11:25:00.151804"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:25:00.153558"], ["updated_at", "2015-10-28 11:25:00.153558"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.193979"], ["updated_at", "2015-10-28 11:25:00.193979"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:25:00.195862"], ["updated_at", "2015-10-28 11:25:00.195862"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.200184"], ["updated_at", "2015-10-28 11:25:00.200184"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:25:00.201660"], ["updated_at", "2015-10-28 11:25:00.201660"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.206250"], ["updated_at", "2015-10-28 11:25:00.206250"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:25:00.207641"], ["updated_at", "2015-10-28 11:25:00.207641"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.211601"], ["updated_at", "2015-10-28 11:25:00.211601"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:25:00.213050"], ["updated_at", "2015-10-28 11:25:00.213050"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.217050"], ["updated_at", "2015-10-28 11:25:00.217050"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:25:00.218681"], ["updated_at", "2015-10-28 11:25:00.218681"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.223866"], ["updated_at", "2015-10-28 11:25:00.223866"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:25:00.225619"], ["updated_at", "2015-10-28 11:25:00.225619"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.250316"], ["updated_at", "2015-10-28 11:25:00.250316"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:25:00.254486"], ["updated_at", "2015-10-28 11:25:00.254486"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:25:00.256434"], ["updated_at", "2015-10-28 11:25:00.256434"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.257737"], ["updated_at", "2015-10-28 11:25:00.257737"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.260706"], ["updated_at", "2015-10-28 11:25:00.260706"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:25:00.262137"], ["updated_at", "2015-10-28 11:25:00.262137"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:25:00.263645"], ["updated_at", "2015-10-28 11:25:00.263645"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.264767"], ["updated_at", "2015-10-28 11:25:00.264767"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.268443"], ["updated_at", "2015-10-28 11:25:00.268443"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:25:00.270098"], ["updated_at", "2015-10-28 11:25:00.270098"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:25:00.271700"], ["updated_at", "2015-10-28 11:25:00.271700"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.272840"], ["updated_at", "2015-10-28 11:25:00.272840"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:25:00.275948"], ["updated_at", "2015-10-28 11:25:00.275948"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:25:00.277474"], ["updated_at", "2015-10-28 11:25:00.277474"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:25:00.288624"], ["updated_at", "2015-10-28 11:25:00.288624"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:25:00.290642"], ["updated_at", "2015-10-28 11:25:00.290642"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:28:50.189163"], ["updated_at", "2015-10-28 11:28:50.189163"]] [1m[35m (8.3ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:28:51.611141"], ["updated_at", "2015-10-28 11:28:51.611141"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.623384"], ["updated_at", "2015-10-28 11:28:51.623384"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.626588"], ["updated_at", "2015-10-28 11:28:51.626588"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 25ms (Views: 9.6ms | ActiveRecord: 0.0ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:28:51.668774"], ["updated_at", "2015-10-28 11:28:51.668774"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.670568"], ["updated_at", "2015-10-28 11:28:51.670568"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.672531"], ["updated_at", "2015-10-28 11:28:51.672531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (8.9ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.4ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:28:51.689724"], ["updated_at", "2015-10-28 11:28:51.689724"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.691403"], ["updated_at", "2015-10-28 11:28:51.691403"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.692849"], ["updated_at", "2015-10-28 11:28:51.692849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.5ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.4ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:28:51.707858"], ["updated_at", "2015-10-28 11:28:51.707858"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.709900"], ["updated_at", "2015-10-28 11:28:51.709900"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.711831"], ["updated_at", "2015-10-28 11:28:51.711831"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.5ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) [1m[35m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:28:51.729804"], ["updated_at", "2015-10-28 11:28:51.729804"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.732513"], ["updated_at", "2015-10-28 11:28:51.732513"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.734051"], ["updated_at", "2015-10-28 11:28:51.734051"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:28:51.885504"], ["updated_at", "2015-10-28 11:28:51.885504"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.887197"], ["updated_at", "2015-10-28 11:28:51.887197"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.888640"], ["updated_at", "2015-10-28 11:28:51.888640"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:28:51.893487"], ["updated_at", "2015-10-28 11:28:51.893487"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.895070"], ["updated_at", "2015-10-28 11:28:51.895070"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.896498"], ["updated_at", "2015-10-28 11:28:51.896498"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:28:51.904070"], ["updated_at", "2015-10-28 11:28:51.904070"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.905860"], ["updated_at", "2015-10-28 11:28:51.905860"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.907477"], ["updated_at", "2015-10-28 11:28:51.907477"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:28:51.911889"], ["updated_at", "2015-10-28 11:28:51.911889"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.913804"], ["updated_at", "2015-10-28 11:28:51.913804"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.915386"], ["updated_at", "2015-10-28 11:28:51.915386"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:28:51.919650"], ["updated_at", "2015-10-28 11:28:51.919650"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.921678"], ["updated_at", "2015-10-28 11:28:51.921678"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:28:51.923322"], ["updated_at", "2015-10-28 11:28:51.923322"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.928804"], ["updated_at", "2015-10-28 11:28:51.928804"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:28:51.930632"], ["updated_at", "2015-10-28 11:28:51.930632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.966099"], ["updated_at", "2015-10-28 11:28:51.966099"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:28:51.967758"], ["updated_at", "2015-10-28 11:28:51.967758"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.971946"], ["updated_at", "2015-10-28 11:28:51.971946"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:28:51.973478"], ["updated_at", "2015-10-28 11:28:51.973478"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.978048"], ["updated_at", "2015-10-28 11:28:51.978048"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:28:51.979532"], ["updated_at", "2015-10-28 11:28:51.979532"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:51.985183"], ["updated_at", "2015-10-28 11:28:51.985183"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:28:51.986923"], ["updated_at", "2015-10-28 11:28:51.986923"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:51.992348"], ["updated_at", "2015-10-28 11:28:51.992348"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:28:51.996498"], ["updated_at", "2015-10-28 11:28:51.996498"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.006807"], ["updated_at", "2015-10-28 11:28:52.006807"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:28:52.008297"], ["updated_at", "2015-10-28 11:28:52.008297"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:52.025641"], ["updated_at", "2015-10-28 11:28:52.025641"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:28:52.027187"], ["updated_at", "2015-10-28 11:28:52.027187"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:28:52.028660"], ["updated_at", "2015-10-28 11:28:52.028660"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.029778"], ["updated_at", "2015-10-28 11:28:52.029778"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.034287"], ["updated_at", "2015-10-28 11:28:52.034287"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:28:52.036173"], ["updated_at", "2015-10-28 11:28:52.036173"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:28:52.038345"], ["updated_at", "2015-10-28 11:28:52.038345"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:52.040102"], ["updated_at", "2015-10-28 11:28:52.040102"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:52.046098"], ["updated_at", "2015-10-28 11:28:52.046098"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:28:52.050585"], ["updated_at", "2015-10-28 11:28:52.050585"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:28:52.054436"], ["updated_at", "2015-10-28 11:28:52.054436"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.055765"], ["updated_at", "2015-10-28 11:28:52.055765"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:28:52.058641"], ["updated_at", "2015-10-28 11:28:52.058641"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:28:52.060047"], ["updated_at", "2015-10-28 11:28:52.060047"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:28:52.068326"], ["updated_at", "2015-10-28 11:28:52.068326"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:28:52.069859"], ["updated_at", "2015-10-28 11:28:52.069859"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:29:09.514879"], ["updated_at", "2015-10-28 11:29:09.514879"]] [1m[35m (8.0ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:29:10.948077"], ["updated_at", "2015-10-28 11:29:10.948077"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:10.961875"], ["updated_at", "2015-10-28 11:29:10.961875"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:10.964606"], ["updated_at", "2015-10-28 11:29:10.964606"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 26ms (Views: 10.9ms | ActiveRecord: 0.0ms) [1m[36m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:29:11.012981"], ["updated_at", "2015-10-28 11:29:11.012981"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.015475"], ["updated_at", "2015-10-28 11:29:11.015475"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.017835"], ["updated_at", "2015-10-28 11:29:11.017835"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (12.2ms) Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.5ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:29:11.043975"], ["updated_at", "2015-10-28 11:29:11.043975"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.047590"], ["updated_at", "2015-10-28 11:29:11.047590"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.049894"], ["updated_at", "2015-10-28 11:29:11.049894"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (7.7ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.5ms) [1m[36m (2.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:29:11.073196"], ["updated_at", "2015-10-28 11:29:11.073196"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.075159"], ["updated_at", "2015-10-28 11:29:11.075159"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.076717"], ["updated_at", "2015-10-28 11:29:11.076717"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.1ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:29:11.088521"], ["updated_at", "2015-10-28 11:29:11.088521"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.090310"], ["updated_at", "2015-10-28 11:29:11.090310"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.091818"], ["updated_at", "2015-10-28 11:29:11.091818"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:29:11.241294"], ["updated_at", "2015-10-28 11:29:11.241294"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.243023"], ["updated_at", "2015-10-28 11:29:11.243023"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.244569"], ["updated_at", "2015-10-28 11:29:11.244569"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:29:11.250471"], ["updated_at", "2015-10-28 11:29:11.250471"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.252144"], ["updated_at", "2015-10-28 11:29:11.252144"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.254089"], ["updated_at", "2015-10-28 11:29:11.254089"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:29:11.261065"], ["updated_at", "2015-10-28 11:29:11.261065"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.262831"], ["updated_at", "2015-10-28 11:29:11.262831"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.264708"], ["updated_at", "2015-10-28 11:29:11.264708"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:29:11.269284"], ["updated_at", "2015-10-28 11:29:11.269284"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.271127"], ["updated_at", "2015-10-28 11:29:11.271127"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.272594"], ["updated_at", "2015-10-28 11:29:11.272594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:29:11.277017"], ["updated_at", "2015-10-28 11:29:11.277017"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.278550"], ["updated_at", "2015-10-28 11:29:11.278550"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:29:11.279895"], ["updated_at", "2015-10-28 11:29:11.279895"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.285528"], ["updated_at", "2015-10-28 11:29:11.285528"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:29:11.287594"], ["updated_at", "2015-10-28 11:29:11.287594"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.325254"], ["updated_at", "2015-10-28 11:29:11.325254"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:29:11.326995"], ["updated_at", "2015-10-28 11:29:11.326995"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.331825"], ["updated_at", "2015-10-28 11:29:11.331825"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:29:11.335324"], ["updated_at", "2015-10-28 11:29:11.335324"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.340886"], ["updated_at", "2015-10-28 11:29:11.340886"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:29:11.342539"], ["updated_at", "2015-10-28 11:29:11.342539"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.353548"], ["updated_at", "2015-10-28 11:29:11.353548"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:29:11.355744"], ["updated_at", "2015-10-28 11:29:11.355744"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.359924"], ["updated_at", "2015-10-28 11:29:11.359924"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:29:11.361786"], ["updated_at", "2015-10-28 11:29:11.361786"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.367202"], ["updated_at", "2015-10-28 11:29:11.367202"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:29:11.368762"], ["updated_at", "2015-10-28 11:29:11.368762"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.389141"], ["updated_at", "2015-10-28 11:29:11.389141"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:29:11.391177"], ["updated_at", "2015-10-28 11:29:11.391177"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:29:11.395190"], ["updated_at", "2015-10-28 11:29:11.395190"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.399642"], ["updated_at", "2015-10-28 11:29:11.399642"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.405761"], ["updated_at", "2015-10-28 11:29:11.405761"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:29:11.407521"], ["updated_at", "2015-10-28 11:29:11.407521"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:29:11.409116"], ["updated_at", "2015-10-28 11:29:11.409116"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.410245"], ["updated_at", "2015-10-28 11:29:11.410245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.414312"], ["updated_at", "2015-10-28 11:29:11.414312"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:29:11.416224"], ["updated_at", "2015-10-28 11:29:11.416224"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:29:11.418273"], ["updated_at", "2015-10-28 11:29:11.418273"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.419465"], ["updated_at", "2015-10-28 11:29:11.419465"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:29:11.422468"], ["updated_at", "2015-10-28 11:29:11.422468"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:29:11.424180"], ["updated_at", "2015-10-28 11:29:11.424180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:29:11.435957"], ["updated_at", "2015-10-28 11:29:11.435957"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:29:11.438159"], ["updated_at", "2015-10-28 11:29:11.438159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (2.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 [1m[35m (0.2ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:43:49.646099"], ["updated_at", "2015-10-28 11:43:49.646099"]] [1m[35m (0.7ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.3ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:43:51.050237"], ["updated_at", "2015-10-28 11:43:51.050237"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.062331"], ["updated_at", "2015-10-28 11:43:51.062331"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.064207"], ["updated_at", "2015-10-28 11:43:51.064207"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 28ms (Views: 14.2ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:43:51.112576"], ["updated_at", "2015-10-28 11:43:51.112576"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.114538"], ["updated_at", "2015-10-28 11:43:51.114538"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.116107"], ["updated_at", "2015-10-28 11:43:51.116107"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (9.1ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.4ms) [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:43:51.133165"], ["updated_at", "2015-10-28 11:43:51.133165"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.134954"], ["updated_at", "2015-10-28 11:43:51.134954"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.136497"], ["updated_at", "2015-10-28 11:43:51.136497"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.8ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:43:51.151029"], ["updated_at", "2015-10-28 11:43:51.151029"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.152890"], ["updated_at", "2015-10-28 11:43:51.152890"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.154685"], ["updated_at", "2015-10-28 11:43:51.154685"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.6ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.4ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.2ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:43:51.175923"], ["updated_at", "2015-10-28 11:43:51.175923"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.177911"], ["updated_at", "2015-10-28 11:43:51.177911"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.179506"], ["updated_at", "2015-10-28 11:43:51.179506"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:43:51.336464"], ["updated_at", "2015-10-28 11:43:51.336464"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.338284"], ["updated_at", "2015-10-28 11:43:51.338284"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.339862"], ["updated_at", "2015-10-28 11:43:51.339862"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:43:51.345820"], ["updated_at", "2015-10-28 11:43:51.345820"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.347673"], ["updated_at", "2015-10-28 11:43:51.347673"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.349408"], ["updated_at", "2015-10-28 11:43:51.349408"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:43:51.355515"], ["updated_at", "2015-10-28 11:43:51.355515"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.357081"], ["updated_at", "2015-10-28 11:43:51.357081"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.358544"], ["updated_at", "2015-10-28 11:43:51.358544"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:43:51.363062"], ["updated_at", "2015-10-28 11:43:51.363062"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.364607"], ["updated_at", "2015-10-28 11:43:51.364607"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.366012"], ["updated_at", "2015-10-28 11:43:51.366012"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:43:51.370049"], ["updated_at", "2015-10-28 11:43:51.370049"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.371792"], ["updated_at", "2015-10-28 11:43:51.371792"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:43:51.373341"], ["updated_at", "2015-10-28 11:43:51.373341"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.377214"], ["updated_at", "2015-10-28 11:43:51.377214"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:43:51.379766"], ["updated_at", "2015-10-28 11:43:51.379766"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.420728"], ["updated_at", "2015-10-28 11:43:51.420728"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:43:51.422619"], ["updated_at", "2015-10-28 11:43:51.422619"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.426901"], ["updated_at", "2015-10-28 11:43:51.426901"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:43:51.428435"], ["updated_at", "2015-10-28 11:43:51.428435"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.433032"], ["updated_at", "2015-10-28 11:43:51.433032"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:43:51.434634"], ["updated_at", "2015-10-28 11:43:51.434634"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.439080"], ["updated_at", "2015-10-28 11:43:51.439080"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:43:51.440662"], ["updated_at", "2015-10-28 11:43:51.440662"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.445097"], ["updated_at", "2015-10-28 11:43:51.445097"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:43:51.446706"], ["updated_at", "2015-10-28 11:43:51.446706"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.451657"], ["updated_at", "2015-10-28 11:43:51.451657"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:43:51.453218"], ["updated_at", "2015-10-28 11:43:51.453218"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.477137"], ["updated_at", "2015-10-28 11:43:51.477137"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:43:51.482017"], ["updated_at", "2015-10-28 11:43:51.482017"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:43:51.485094"], ["updated_at", "2015-10-28 11:43:51.485094"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.486607"], ["updated_at", "2015-10-28 11:43:51.486607"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.489742"], ["updated_at", "2015-10-28 11:43:51.489742"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:43:51.491229"], ["updated_at", "2015-10-28 11:43:51.491229"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:43:51.492879"], ["updated_at", "2015-10-28 11:43:51.492879"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.494081"], ["updated_at", "2015-10-28 11:43:51.494081"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.497497"], ["updated_at", "2015-10-28 11:43:51.497497"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:43:51.499250"], ["updated_at", "2015-10-28 11:43:51.499250"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:43:51.501137"], ["updated_at", "2015-10-28 11:43:51.501137"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.502511"], ["updated_at", "2015-10-28 11:43:51.502511"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:43:51.505673"], ["updated_at", "2015-10-28 11:43:51.505673"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:43:51.507154"], ["updated_at", "2015-10-28 11:43:51.507154"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:43:51.518660"], ["updated_at", "2015-10-28 11:43:51.518660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:43:51.520359"], ["updated_at", "2015-10-28 11:43:51.520359"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:44:06.260431"], ["updated_at", "2015-10-28 11:44:06.260431"]] [1m[35m (8.8ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:44:07.665628"], ["updated_at", "2015-10-28 11:44:07.665628"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.677792"], ["updated_at", "2015-10-28 11:44:07.677792"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.679612"], ["updated_at", "2015-10-28 11:44:07.679612"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 24ms (Views: 13.5ms | ActiveRecord: 0.0ms) [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:44:07.721853"], ["updated_at", "2015-10-28 11:44:07.721853"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:07.723489"], ["updated_at", "2015-10-28 11:44:07.723489"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.724887"], ["updated_at", "2015-10-28 11:44:07.724887"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (9.7ms) Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.3ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:44:07.742688"], ["updated_at", "2015-10-28 11:44:07.742688"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:07.744445"], ["updated_at", "2015-10-28 11:44:07.744445"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.746082"], ["updated_at", "2015-10-28 11:44:07.746082"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.4ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:44:07.760133"], ["updated_at", "2015-10-28 11:44:07.760133"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:07.762137"], ["updated_at", "2015-10-28 11:44:07.762137"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.764147"], ["updated_at", "2015-10-28 11:44:07.764147"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.1ms) Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:44:07.784122"], ["updated_at", "2015-10-28 11:44:07.784122"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.785941"], ["updated_at", "2015-10-28 11:44:07.785941"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.787330"], ["updated_at", "2015-10-28 11:44:07.787330"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:44:07.943837"], ["updated_at", "2015-10-28 11:44:07.943837"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:07.946063"], ["updated_at", "2015-10-28 11:44:07.946063"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.948284"], ["updated_at", "2015-10-28 11:44:07.948284"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:44:07.955216"], ["updated_at", "2015-10-28 11:44:07.955216"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:07.957461"], ["updated_at", "2015-10-28 11:44:07.957461"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.959376"], ["updated_at", "2015-10-28 11:44:07.959376"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:44:07.967411"], ["updated_at", "2015-10-28 11:44:07.967411"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:07.970388"], ["updated_at", "2015-10-28 11:44:07.970388"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.973065"], ["updated_at", "2015-10-28 11:44:07.973065"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.0ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:44:07.979201"], ["updated_at", "2015-10-28 11:44:07.979201"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:07.981354"], ["updated_at", "2015-10-28 11:44:07.981354"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.983503"], ["updated_at", "2015-10-28 11:44:07.983503"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:44:07.990494"], ["updated_at", "2015-10-28 11:44:07.990494"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:07.993617"], ["updated_at", "2015-10-28 11:44:07.993617"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:44:07.996430"], ["updated_at", "2015-10-28 11:44:07.996430"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.9ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.001725"], ["updated_at", "2015-10-28 11:44:08.001725"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:44:08.008863"], ["updated_at", "2015-10-28 11:44:08.008863"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:08.052484"], ["updated_at", "2015-10-28 11:44:08.052484"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:44:08.059798"], ["updated_at", "2015-10-28 11:44:08.059798"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.069942"], ["updated_at", "2015-10-28 11:44:08.069942"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:44:08.071711"], ["updated_at", "2015-10-28 11:44:08.071711"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:08.076641"], ["updated_at", "2015-10-28 11:44:08.076641"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:44:08.078297"], ["updated_at", "2015-10-28 11:44:08.078297"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.082563"], ["updated_at", "2015-10-28 11:44:08.082563"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:44:08.084045"], ["updated_at", "2015-10-28 11:44:08.084045"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:08.088210"], ["updated_at", "2015-10-28 11:44:08.088210"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:44:08.089686"], ["updated_at", "2015-10-28 11:44:08.089686"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.097506"], ["updated_at", "2015-10-28 11:44:08.097506"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:44:08.099730"], ["updated_at", "2015-10-28 11:44:08.099730"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:08.120906"], ["updated_at", "2015-10-28 11:44:08.120906"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:44:08.122418"], ["updated_at", "2015-10-28 11:44:08.122418"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:44:08.123840"], ["updated_at", "2015-10-28 11:44:08.123840"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.124925"], ["updated_at", "2015-10-28 11:44:08.124925"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.127794"], ["updated_at", "2015-10-28 11:44:08.127794"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:44:08.129157"], ["updated_at", "2015-10-28 11:44:08.129157"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:44:08.130820"], ["updated_at", "2015-10-28 11:44:08.130820"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:08.132058"], ["updated_at", "2015-10-28 11:44:08.132058"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:08.135337"], ["updated_at", "2015-10-28 11:44:08.135337"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:44:08.136788"], ["updated_at", "2015-10-28 11:44:08.136788"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:44:08.139160"], ["updated_at", "2015-10-28 11:44:08.139160"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.141462"], ["updated_at", "2015-10-28 11:44:08.141462"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:44:08.145173"], ["updated_at", "2015-10-28 11:44:08.145173"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:44:08.147220"], ["updated_at", "2015-10-28 11:44:08.147220"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:44:08.162709"], ["updated_at", "2015-10-28 11:44:08.162709"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:44:08.164285"], ["updated_at", "2015-10-28 11:44:08.164285"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:45:19.911780"], ["updated_at", "2015-10-28 11:45:19.911780"]] [1m[35m (8.8ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:45:21.302285"], ["updated_at", "2015-10-28 11:45:21.302285"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.314807"], ["updated_at", "2015-10-28 11:45:21.314807"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.316706"], ["updated_at", "2015-10-28 11:45:21.316706"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 22ms (Views: 8.2ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:45:21.357018"], ["updated_at", "2015-10-28 11:45:21.357018"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.358704"], ["updated_at", "2015-10-28 11:45:21.358704"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.360157"], ["updated_at", "2015-10-28 11:45:21.360157"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/index.json.jbuilder (7.0ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:45:21.375759"], ["updated_at", "2015-10-28 11:45:21.375759"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.377475"], ["updated_at", "2015-10-28 11:45:21.377475"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.378997"], ["updated_at", "2015-10-28 11:45:21.378997"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:45:21.392365"], ["updated_at", "2015-10-28 11:45:21.392365"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.394510"], ["updated_at", "2015-10-28 11:45:21.394510"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.396431"], ["updated_at", "2015-10-28 11:45:21.396431"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.2ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms) [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:45:21.416232"], ["updated_at", "2015-10-28 11:45:21.416232"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.418270"], ["updated_at", "2015-10-28 11:45:21.418270"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.419967"], ["updated_at", "2015-10-28 11:45:21.419967"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:45:21.549834"], ["updated_at", "2015-10-28 11:45:21.549834"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.551593"], ["updated_at", "2015-10-28 11:45:21.551593"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.553196"], ["updated_at", "2015-10-28 11:45:21.553196"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (8.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:45:21.567267"], ["updated_at", "2015-10-28 11:45:21.567267"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.569122"], ["updated_at", "2015-10-28 11:45:21.569122"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.570732"], ["updated_at", "2015-10-28 11:45:21.570732"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:45:21.576666"], ["updated_at", "2015-10-28 11:45:21.576666"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.578405"], ["updated_at", "2015-10-28 11:45:21.578405"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.579810"], ["updated_at", "2015-10-28 11:45:21.579810"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:45:21.584123"], ["updated_at", "2015-10-28 11:45:21.584123"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.585947"], ["updated_at", "2015-10-28 11:45:21.585947"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.587508"], ["updated_at", "2015-10-28 11:45:21.587508"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:45:21.591507"], ["updated_at", "2015-10-28 11:45:21.591507"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.593130"], ["updated_at", "2015-10-28 11:45:21.593130"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:45:21.594835"], ["updated_at", "2015-10-28 11:45:21.594835"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.598707"], ["updated_at", "2015-10-28 11:45:21.598707"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:45:21.601603"], ["updated_at", "2015-10-28 11:45:21.601603"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.631228"], ["updated_at", "2015-10-28 11:45:21.631228"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:45:21.633172"], ["updated_at", "2015-10-28 11:45:21.633172"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.637603"], ["updated_at", "2015-10-28 11:45:21.637603"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:45:21.639112"], ["updated_at", "2015-10-28 11:45:21.639112"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.643600"], ["updated_at", "2015-10-28 11:45:21.643600"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:45:21.645097"], ["updated_at", "2015-10-28 11:45:21.645097"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.649368"], ["updated_at", "2015-10-28 11:45:21.649368"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:45:21.651003"], ["updated_at", "2015-10-28 11:45:21.651003"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.655280"], ["updated_at", "2015-10-28 11:45:21.655280"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:45:21.656718"], ["updated_at", "2015-10-28 11:45:21.656718"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.660878"], ["updated_at", "2015-10-28 11:45:21.660878"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:45:21.662348"], ["updated_at", "2015-10-28 11:45:21.662348"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.677511"], ["updated_at", "2015-10-28 11:45:21.677511"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:45:21.680754"], ["updated_at", "2015-10-28 11:45:21.680754"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:45:21.685299"], ["updated_at", "2015-10-28 11:45:21.685299"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.687502"], ["updated_at", "2015-10-28 11:45:21.687502"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.690606"], ["updated_at", "2015-10-28 11:45:21.690606"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:45:21.692066"], ["updated_at", "2015-10-28 11:45:21.692066"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:45:21.693504"], ["updated_at", "2015-10-28 11:45:21.693504"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.694641"], ["updated_at", "2015-10-28 11:45:21.694641"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.697945"], ["updated_at", "2015-10-28 11:45:21.697945"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:45:21.699391"], ["updated_at", "2015-10-28 11:45:21.699391"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:45:21.701051"], ["updated_at", "2015-10-28 11:45:21.701051"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.702213"], ["updated_at", "2015-10-28 11:45:21.702213"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:45:21.704845"], ["updated_at", "2015-10-28 11:45:21.704845"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:45:21.706224"], ["updated_at", "2015-10-28 11:45:21.706224"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:45:21.714691"], ["updated_at", "2015-10-28 11:45:21.714691"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:45:21.716750"], ["updated_at", "2015-10-28 11:45:21.716750"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:46:02.313604"], ["updated_at", "2015-10-28 11:46:02.313604"]] [1m[35m (9.1ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:46:03.655620"], ["updated_at", "2015-10-28 11:46:03.655620"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.663842"], ["updated_at", "2015-10-28 11:46:03.663842"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.665617"], ["updated_at", "2015-10-28 11:46:03.665617"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 16ms (Views: 7.0ms | ActiveRecord: 0.0ms) [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:46:03.708233"], ["updated_at", "2015-10-28 11:46:03.708233"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:03.710215"], ["updated_at", "2015-10-28 11:46:03.710215"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.711656"], ["updated_at", "2015-10-28 11:46:03.711656"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/index.json.jbuilder (7.4ms) Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:46:03.727488"], ["updated_at", "2015-10-28 11:46:03.727488"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.729067"], ["updated_at", "2015-10-28 11:46:03.729067"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.730427"], ["updated_at", "2015-10-28 11:46:03.730427"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms) [1m[35m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:46:03.743977"], ["updated_at", "2015-10-28 11:46:03.743977"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.746726"], ["updated_at", "2015-10-28 11:46:03.746726"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.748672"], ["updated_at", "2015-10-28 11:46:03.748672"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.1ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:46:03.763851"], ["updated_at", "2015-10-28 11:46:03.763851"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:03.769125"], ["updated_at", "2015-10-28 11:46:03.769125"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.772196"], ["updated_at", "2015-10-28 11:46:03.772196"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:46:03.896984"], ["updated_at", "2015-10-28 11:46:03.896984"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:03.898657"], ["updated_at", "2015-10-28 11:46:03.898657"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.900021"], ["updated_at", "2015-10-28 11:46:03.900021"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (7.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:46:03.911903"], ["updated_at", "2015-10-28 11:46:03.911903"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.913540"], ["updated_at", "2015-10-28 11:46:03.913540"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.914999"], ["updated_at", "2015-10-28 11:46:03.914999"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.1ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:46:03.920624"], ["updated_at", "2015-10-28 11:46:03.920624"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.922393"], ["updated_at", "2015-10-28 11:46:03.922393"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.923779"], ["updated_at", "2015-10-28 11:46:03.923779"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:46:03.927992"], ["updated_at", "2015-10-28 11:46:03.927992"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.929557"], ["updated_at", "2015-10-28 11:46:03.929557"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.930967"], ["updated_at", "2015-10-28 11:46:03.930967"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:46:03.935518"], ["updated_at", "2015-10-28 11:46:03.935518"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.937007"], ["updated_at", "2015-10-28 11:46:03.937007"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:46:03.938352"], ["updated_at", "2015-10-28 11:46:03.938352"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:03.941928"], ["updated_at", "2015-10-28 11:46:03.941928"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:46:03.943406"], ["updated_at", "2015-10-28 11:46:03.943406"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.973852"], ["updated_at", "2015-10-28 11:46:03.973852"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:46:03.975605"], ["updated_at", "2015-10-28 11:46:03.975605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:03.980013"], ["updated_at", "2015-10-28 11:46:03.980013"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:46:03.981473"], ["updated_at", "2015-10-28 11:46:03.981473"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.986224"], ["updated_at", "2015-10-28 11:46:03.986224"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:46:03.987857"], ["updated_at", "2015-10-28 11:46:03.987857"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:03.992326"], ["updated_at", "2015-10-28 11:46:03.992326"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:46:03.993819"], ["updated_at", "2015-10-28 11:46:03.993819"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:03.998013"], ["updated_at", "2015-10-28 11:46:03.998013"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:46:03.999498"], ["updated_at", "2015-10-28 11:46:03.999498"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:04.004101"], ["updated_at", "2015-10-28 11:46:04.004101"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:46:04.005665"], ["updated_at", "2015-10-28 11:46:04.005665"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.019302"], ["updated_at", "2015-10-28 11:46:04.019302"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:46:04.024344"], ["updated_at", "2015-10-28 11:46:04.024344"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:46:04.029336"], ["updated_at", "2015-10-28 11:46:04.029336"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:04.031640"], ["updated_at", "2015-10-28 11:46:04.031640"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:04.034627"], ["updated_at", "2015-10-28 11:46:04.034627"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:46:04.036096"], ["updated_at", "2015-10-28 11:46:04.036096"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:46:04.037512"], ["updated_at", "2015-10-28 11:46:04.037512"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.038610"], ["updated_at", "2015-10-28 11:46:04.038610"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.042125"], ["updated_at", "2015-10-28 11:46:04.042125"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:46:04.043557"], ["updated_at", "2015-10-28 11:46:04.043557"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:46:04.045254"], ["updated_at", "2015-10-28 11:46:04.045254"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:04.046422"], ["updated_at", "2015-10-28 11:46:04.046422"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:46:04.049210"], ["updated_at", "2015-10-28 11:46:04.049210"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:46:04.050630"], ["updated_at", "2015-10-28 11:46:04.050630"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:46:04.059276"], ["updated_at", "2015-10-28 11:46:04.059276"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:46:04.061231"], ["updated_at", "2015-10-28 11:46:04.061231"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[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[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:48:49.328413"], ["updated_at", "2015-10-28 11:48:49.328413"]] [1m[35m (0.8ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:48:50.749537"], ["updated_at", "2015-10-28 11:48:50.749537"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:50.762972"], ["updated_at", "2015-10-28 11:48:50.762972"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:50.766396"], ["updated_at", "2015-10-28 11:48:50.766396"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 24ms (Views: 10.1ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:48:50.817225"], ["updated_at", "2015-10-28 11:48:50.817225"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:50.819444"], ["updated_at", "2015-10-28 11:48:50.819444"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:50.821504"], ["updated_at", "2015-10-28 11:48:50.821504"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/index.json.jbuilder (9.9ms) Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.4ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:48:50.842508"], ["updated_at", "2015-10-28 11:48:50.842508"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:50.844660"], ["updated_at", "2015-10-28 11:48:50.844660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:50.846668"], ["updated_at", "2015-10-28 11:48:50.846668"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.8ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:48:50.868801"], ["updated_at", "2015-10-28 11:48:50.868801"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:50.875784"], ["updated_at", "2015-10-28 11:48:50.875784"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:50.878224"], ["updated_at", "2015-10-28 11:48:50.878224"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.9ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:48:50.892294"], ["updated_at", "2015-10-28 11:48:50.892294"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:50.894178"], ["updated_at", "2015-10-28 11:48:50.894178"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:50.895748"], ["updated_at", "2015-10-28 11:48:50.895748"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:48:51.059563"], ["updated_at", "2015-10-28 11:48:51.059563"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.061317"], ["updated_at", "2015-10-28 11:48:51.061317"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:51.062800"], ["updated_at", "2015-10-28 11:48:51.062800"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:48:51.068166"], ["updated_at", "2015-10-28 11:48:51.068166"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.070058"], ["updated_at", "2015-10-28 11:48:51.070058"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:51.071835"], ["updated_at", "2015-10-28 11:48:51.071835"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:48:51.077983"], ["updated_at", "2015-10-28 11:48:51.077983"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.079550"], ["updated_at", "2015-10-28 11:48:51.079550"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:51.080970"], ["updated_at", "2015-10-28 11:48:51.080970"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:48:51.084949"], ["updated_at", "2015-10-28 11:48:51.084949"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.086536"], ["updated_at", "2015-10-28 11:48:51.086536"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:51.088268"], ["updated_at", "2015-10-28 11:48:51.088268"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:48:51.092538"], ["updated_at", "2015-10-28 11:48:51.092538"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.094130"], ["updated_at", "2015-10-28 11:48:51.094130"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:48:51.095465"], ["updated_at", "2015-10-28 11:48:51.095465"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.099159"], ["updated_at", "2015-10-28 11:48:51.099159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:48:51.100651"], ["updated_at", "2015-10-28 11:48:51.100651"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.143537"], ["updated_at", "2015-10-28 11:48:51.143537"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:48:51.145976"], ["updated_at", "2015-10-28 11:48:51.145976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.151220"], ["updated_at", "2015-10-28 11:48:51.151220"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:48:51.153360"], ["updated_at", "2015-10-28 11:48:51.153360"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.158967"], ["updated_at", "2015-10-28 11:48:51.158967"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:48:51.160941"], ["updated_at", "2015-10-28 11:48:51.160941"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.166703"], ["updated_at", "2015-10-28 11:48:51.166703"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:48:51.168684"], ["updated_at", "2015-10-28 11:48:51.168684"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.173342"], ["updated_at", "2015-10-28 11:48:51.173342"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:48:51.175250"], ["updated_at", "2015-10-28 11:48:51.175250"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.183344"], ["updated_at", "2015-10-28 11:48:51.183344"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:48:51.186023"], ["updated_at", "2015-10-28 11:48:51.186023"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.211664"], ["updated_at", "2015-10-28 11:48:51.211664"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:48:51.213866"], ["updated_at", "2015-10-28 11:48:51.213866"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:48:51.216108"], ["updated_at", "2015-10-28 11:48:51.216108"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.217652"], ["updated_at", "2015-10-28 11:48:51.217652"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.221259"], ["updated_at", "2015-10-28 11:48:51.221259"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:48:51.223204"], ["updated_at", "2015-10-28 11:48:51.223204"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:48:51.225478"], ["updated_at", "2015-10-28 11:48:51.225478"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.227258"], ["updated_at", "2015-10-28 11:48:51.227258"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.231301"], ["updated_at", "2015-10-28 11:48:51.231301"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:48:51.233124"], ["updated_at", "2015-10-28 11:48:51.233124"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:48:51.236917"], ["updated_at", "2015-10-28 11:48:51.236917"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.238798"], ["updated_at", "2015-10-28 11:48:51.238798"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:48:51.242925"], ["updated_at", "2015-10-28 11:48:51.242925"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:48:51.244923"], ["updated_at", "2015-10-28 11:48:51.244923"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:48:51.262494"], ["updated_at", "2015-10-28 11:48:51.262494"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:48:51.264634"], ["updated_at", "2015-10-28 11:48:51.264634"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:51:35.891262"], ["updated_at", "2015-10-28 11:51:35.891262"]] [1m[35m (0.8ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:51:37.549136"], ["updated_at", "2015-10-28 11:51:37.549136"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.560363"], ["updated_at", "2015-10-28 11:51:37.560363"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.562609"], ["updated_at", "2015-10-28 11:51:37.562609"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 26ms (Views: 10.7ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:51:37.608246"], ["updated_at", "2015-10-28 11:51:37.608246"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.609965"], ["updated_at", "2015-10-28 11:51:37.609965"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.611364"], ["updated_at", "2015-10-28 11:51:37.611364"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" Processing by API::NotificationsController#index as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/index.json.jbuilder (8.3ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.4ms) [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:51:37.628715"], ["updated_at", "2015-10-28 11:51:37.628715"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.630275"], ["updated_at", "2015-10-28 11:51:37.630275"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.631863"], ["updated_at", "2015-10-28 11:51:37.631863"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.3ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.3ms) [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:51:37.652035"], ["updated_at", "2015-10-28 11:51:37.652035"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.654059"], ["updated_at", "2015-10-28 11:51:37.654059"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.655877"], ["updated_at", "2015-10-28 11:51:37.655877"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.6ms) Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.5ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:51:37.675402"], ["updated_at", "2015-10-28 11:51:37.675402"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.676998"], ["updated_at", "2015-10-28 11:51:37.676998"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.678388"], ["updated_at", "2015-10-28 11:51:37.678388"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 11:51:37.837497"], ["updated_at", "2015-10-28 11:51:37.837497"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.839274"], ["updated_at", "2015-10-28 11:51:37.839274"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.840785"], ["updated_at", "2015-10-28 11:51:37.840785"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 11:51:37.845995"], ["updated_at", "2015-10-28 11:51:37.845995"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.847758"], ["updated_at", "2015-10-28 11:51:37.847758"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.849253"], ["updated_at", "2015-10-28 11:51:37.849253"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 11:51:37.856629"], ["updated_at", "2015-10-28 11:51:37.856629"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.858503"], ["updated_at", "2015-10-28 11:51:37.858503"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.860170"], ["updated_at", "2015-10-28 11:51:37.860170"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 11:51:37.864937"], ["updated_at", "2015-10-28 11:51:37.864937"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.866562"], ["updated_at", "2015-10-28 11:51:37.866562"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.867969"], ["updated_at", "2015-10-28 11:51:37.867969"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.6ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 11:51:37.872418"], ["updated_at", "2015-10-28 11:51:37.872418"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.874089"], ["updated_at", "2015-10-28 11:51:37.874089"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:51:37.875721"], ["updated_at", "2015-10-28 11:51:37.875721"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 0.7ms [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.881209"], ["updated_at", "2015-10-28 11:51:37.881209"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 11:51:37.883072"], ["updated_at", "2015-10-28 11:51:37.883072"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.921951"], ["updated_at", "2015-10-28 11:51:37.921951"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 11:51:37.923834"], ["updated_at", "2015-10-28 11:51:37.923834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.928228"], ["updated_at", "2015-10-28 11:51:37.928228"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 11:51:37.929815"], ["updated_at", "2015-10-28 11:51:37.929815"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.936630"], ["updated_at", "2015-10-28 11:51:37.936630"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 11:51:37.938300"], ["updated_at", "2015-10-28 11:51:37.938300"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.943506"], ["updated_at", "2015-10-28 11:51:37.943506"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 11:51:37.944990"], ["updated_at", "2015-10-28 11:51:37.944990"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.954152"], ["updated_at", "2015-10-28 11:51:37.954152"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 11:51:37.957944"], ["updated_at", "2015-10-28 11:51:37.957944"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.963163"], ["updated_at", "2015-10-28 11:51:37.963163"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 11:51:37.964603"], ["updated_at", "2015-10-28 11:51:37.964603"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:37.982317"], ["updated_at", "2015-10-28 11:51:37.982317"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 11:51:37.984045"], ["updated_at", "2015-10-28 11:51:37.984045"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 11:51:37.987413"], ["updated_at", "2015-10-28 11:51:37.987413"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.988954"], ["updated_at", "2015-10-28 11:51:37.988954"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:37.993227"], ["updated_at", "2015-10-28 11:51:37.993227"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 11:51:37.995369"], ["updated_at", "2015-10-28 11:51:37.995369"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 11:51:37.999034"], ["updated_at", "2015-10-28 11:51:37.999034"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:38.004195"], ["updated_at", "2015-10-28 11:51:38.004195"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:38.009832"], ["updated_at", "2015-10-28 11:51:38.009832"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 11:51:38.011579"], ["updated_at", "2015-10-28 11:51:38.011579"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 11:51:38.013234"], ["updated_at", "2015-10-28 11:51:38.013234"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:38.014448"], ["updated_at", "2015-10-28 11:51:38.014448"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:51:38.017630"], ["updated_at", "2015-10-28 11:51:38.017630"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 11:51:38.019093"], ["updated_at", "2015-10-28 11:51:38.019093"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:51:38.028637"], ["updated_at", "2015-10-28 11:51:38.028637"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 11:51:38.030299"], ["updated_at", "2015-10-28 11:51:38.030299"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.5ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.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.0ms)[0m [1mrollback transaction[0m [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:52:43.476545"], ["updated_at", "2015-10-28 11:52:43.476545"]] [1m[35m (8.9ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:52:44.882053"], ["updated_at", "2015-10-28 11:52:44.882053"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:52:44.890559"], ["updated_at", "2015-10-28 11:52:44.890559"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (9.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:52:44.919101"], ["updated_at", "2015-10-28 11:52:44.919101"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:52:44.920965"], ["updated_at", "2015-10-28 11:52:44.920965"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:52:44.927014"], ["updated_at", "2015-10-28 11:52:44.927014"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:52:44.928701"], ["updated_at", "2015-10-28 11:52:44.928701"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:52:44.935685"], ["updated_at", "2015-10-28 11:52:44.935685"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:52:44.937464"], ["updated_at", "2015-10-28 11:52:44.937464"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:52:44.943048"], ["updated_at", "2015-10-28 11:52:44.943048"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:52:44.945079"], ["updated_at", "2015-10-28 11:52:44.945079"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m begin transaction [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:53:14.541446"], ["updated_at", "2015-10-28 11:53:14.541446"]] [1m[35m (9.1ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:53:15.897780"], ["updated_at", "2015-10-28 11:53:15.897780"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:53:15.907200"], ["updated_at", "2015-10-28 11:53:15.907200"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (9.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:53:15.936903"], ["updated_at", "2015-10-28 11:53:15.936903"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:53:15.940321"], ["updated_at", "2015-10-28 11:53:15.940321"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:53:15.946171"], ["updated_at", "2015-10-28 11:53:15.946171"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:53:15.947869"], ["updated_at", "2015-10-28 11:53:15.947869"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:53:15.953811"], ["updated_at", "2015-10-28 11:53:15.953811"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:53:15.955530"], ["updated_at", "2015-10-28 11:53:15.955530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:53:15.960877"], ["updated_at", "2015-10-28 11:53:15.960877"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:53:15.962755"], ["updated_at", "2015-10-28 11:53:15.962755"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 11:55:43.732958"], ["updated_at", "2015-10-28 11:55:43.732958"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:55:43.747671"], ["updated_at", "2015-10-28 11:55:43.747671"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.751631"], ["updated_at", "2015-10-28 11:55:43.751631"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:55:43.754406"], ["updated_at", "2015-10-28 11:55:43.754406"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 9.0ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 11:55:43.796410"], ["updated_at", "2015-10-28 11:55:43.796410"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:55:43.798025"], ["updated_at", "2015-10-28 11:55:43.798025"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.799470"], ["updated_at", "2015-10-28 11:55:43.799470"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:55:43.801029"], ["updated_at", "2015-10-28 11:55:43.801029"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (12.9ms) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 11:55:43.823586"], ["updated_at", "2015-10-28 11:55:43.823586"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 11:55:43.825309"], ["updated_at", "2015-10-28 11:55:43.825309"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.826933"], ["updated_at", "2015-10-28 11:55:43.826933"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:55:43.828385"], ["updated_at", "2015-10-28 11:55:43.828385"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 11:55:43.845527"], ["updated_at", "2015-10-28 11:55:43.845527"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:55:43.850557"], ["updated_at", "2015-10-28 11:55:43.850557"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.855902"], ["updated_at", "2015-10-28 11:55:43.855902"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:55:43.858865"], ["updated_at", "2015-10-28 11:55:43.858865"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 11:55:43.870037"], ["updated_at", "2015-10-28 11:55:43.870037"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 11:55:43.872040"], ["updated_at", "2015-10-28 11:55:43.872040"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 11:55:43.873638"], ["updated_at", "2015-10-28 11:55:43.873638"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 11:55:43.875077"], ["updated_at", "2015-10-28 11:55:43.875077"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:27:04.893570"], ["updated_at", "2015-10-28 13:27:04.893570"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:04.913405"], ["updated_at", "2015-10-28 13:27:04.913405"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:04.921863"], ["updated_at", "2015-10-28 13:27:04.921863"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:04.924898"], ["updated_at", "2015-10-28 13:27:04.924898"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 20ms (Views: 8.7ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:27:04.965922"], ["updated_at", "2015-10-28 13:27:04.965922"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:04.967765"], ["updated_at", "2015-10-28 13:27:04.967765"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:04.969382"], ["updated_at", "2015-10-28 13:27:04.969382"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:04.970828"], ["updated_at", "2015-10-28 13:27:04.970828"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (14.7ms) Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.5ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:27:04.995175"], ["updated_at", "2015-10-28 13:27:04.995175"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:04.997014"], ["updated_at", "2015-10-28 13:27:04.997014"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:04.998677"], ["updated_at", "2015-10-28 13:27:04.998677"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.002226"], ["updated_at", "2015-10-28 13:27:05.002226"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.3ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (5.7ms) Completed 200 OK in 18ms (Views: 7.8ms | ActiveRecord: 0.5ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:27:05.029074"], ["updated_at", "2015-10-28 13:27:05.029074"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.030997"], ["updated_at", "2015-10-28 13:27:05.030997"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.032753"], ["updated_at", "2015-10-28 13:27:05.032753"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.034281"], ["updated_at", "2015-10-28 13:27:05.034281"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.8ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:27:05.046078"], ["updated_at", "2015-10-28 13:27:05.046078"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.047952"], ["updated_at", "2015-10-28 13:27:05.047952"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.049533"], ["updated_at", "2015-10-28 13:27:05.049533"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.050966"], ["updated_at", "2015-10-28 13:27:05.050966"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:27:05.211886"], ["updated_at", "2015-10-28 13:27:05.211886"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.213658"], ["updated_at", "2015-10-28 13:27:05.213658"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.215111"], ["updated_at", "2015-10-28 13:27:05.215111"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.216452"], ["updated_at", "2015-10-28 13:27:05.216452"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:27:05.221870"], ["updated_at", "2015-10-28 13:27:05.221870"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.223608"], ["updated_at", "2015-10-28 13:27:05.223608"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.225453"], ["updated_at", "2015-10-28 13:27:05.225453"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.226968"], ["updated_at", "2015-10-28 13:27:05.226968"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.8ms [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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:27:05.232789"], ["updated_at", "2015-10-28 13:27:05.232789"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.234550"], ["updated_at", "2015-10-28 13:27:05.234550"]] [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 INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.236356"], ["updated_at", "2015-10-28 13:27:05.236356"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.237899"], ["updated_at", "2015-10-28 13:27:05.237899"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms [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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:27:05.242095"], ["updated_at", "2015-10-28 13:27:05.242095"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.244309"], ["updated_at", "2015-10-28 13:27:05.244309"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.245920"], ["updated_at", "2015-10-28 13:27:05.245920"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.247375"], ["updated_at", "2015-10-28 13:27:05.247375"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:27:05.251840"], ["updated_at", "2015-10-28 13:27:05.251840"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.253541"], ["updated_at", "2015-10-28 13:27:05.253541"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.255395"], ["updated_at", "2015-10-28 13:27:05.255395"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:27:05.258689"], ["updated_at", "2015-10-28 13:27:05.258689"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.5ms [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.264805"], ["updated_at", "2015-10-28 13:27:05.264805"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:27:05.266462"], ["updated_at", "2015-10-28 13:27:05.266462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.304837"], ["updated_at", "2015-10-28 13:27:05.304837"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:27:05.306715"], ["updated_at", "2015-10-28 13:27:05.306715"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.311192"], ["updated_at", "2015-10-28 13:27:05.311192"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:27:05.313306"], ["updated_at", "2015-10-28 13:27:05.313306"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.320890"], ["updated_at", "2015-10-28 13:27:05.320890"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:27:05.322613"], ["updated_at", "2015-10-28 13:27:05.322613"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.334669"], ["updated_at", "2015-10-28 13:27:05.334669"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:27:05.336346"], ["updated_at", "2015-10-28 13:27:05.336346"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.340395"], ["updated_at", "2015-10-28 13:27:05.340395"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:27:05.342289"], ["updated_at", "2015-10-28 13:27:05.342289"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.347708"], ["updated_at", "2015-10-28 13:27:05.347708"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:27:05.349388"], ["updated_at", "2015-10-28 13:27:05.349388"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.369322"], ["updated_at", "2015-10-28 13:27:05.369322"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:27:05.371138"], ["updated_at", "2015-10-28 13:27:05.371138"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:27:05.372870"], ["updated_at", "2015-10-28 13:27:05.372870"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.376881"], ["updated_at", "2015-10-28 13:27:05.376881"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.381483"], ["updated_at", "2015-10-28 13:27:05.381483"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.387379"], ["updated_at", "2015-10-28 13:27:05.387379"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:27:05.389104"], ["updated_at", "2015-10-28 13:27:05.389104"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:27:05.391459"], ["updated_at", "2015-10-28 13:27:05.391459"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.393399"], ["updated_at", "2015-10-28 13:27:05.393399"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.395577"], ["updated_at", "2015-10-28 13:27:05.395577"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.399763"], ["updated_at", "2015-10-28 13:27:05.399763"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:27:05.401442"], ["updated_at", "2015-10-28 13:27:05.401442"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:27:05.403030"], ["updated_at", "2015-10-28 13:27:05.403030"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.404258"], ["updated_at", "2015-10-28 13:27:05.404258"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:27:05.405416"], ["updated_at", "2015-10-28 13:27:05.405416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:27:05.408344"], ["updated_at", "2015-10-28 13:27:05.408344"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:27:05.410113"], ["updated_at", "2015-10-28 13:27:05.410113"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:27:05.421971"], ["updated_at", "2015-10-28 13:27:05.421971"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:27:05.424899"], ["updated_at", "2015-10-28 13:27:05.424899"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:29:21.285729"], ["updated_at", "2015-10-28 13:29:21.285729"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.301754"], ["updated_at", "2015-10-28 13:29:21.301754"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.305627"], ["updated_at", "2015-10-28 13:29:21.305627"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.308403"], ["updated_at", "2015-10-28 13:29:21.308403"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 22ms (Views: 10.7ms | ActiveRecord: 0.0ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:29:21.355048"], ["updated_at", "2015-10-28 13:29:21.355048"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.356955"], ["updated_at", "2015-10-28 13:29:21.356955"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.358659"], ["updated_at", "2015-10-28 13:29:21.358659"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.360103"], ["updated_at", "2015-10-28 13:29:21.360103"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (12.7ms) Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:29:21.381734"], ["updated_at", "2015-10-28 13:29:21.381734"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.383746"], ["updated_at", "2015-10-28 13:29:21.383746"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.385302"], ["updated_at", "2015-10-28 13:29:21.385302"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.386668"], ["updated_at", "2015-10-28 13:29:21.386668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.3ms) Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 0.3ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:29:21.406160"], ["updated_at", "2015-10-28 13:29:21.406160"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.407920"], ["updated_at", "2015-10-28 13:29:21.407920"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.412049"], ["updated_at", "2015-10-28 13:29:21.412049"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.418832"], ["updated_at", "2015-10-28 13:29:21.418832"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:29:21.432682"], ["updated_at", "2015-10-28 13:29:21.432682"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.434490"], ["updated_at", "2015-10-28 13:29:21.434490"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.435977"], ["updated_at", "2015-10-28 13:29:21.435977"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.437431"], ["updated_at", "2015-10-28 13:29:21.437431"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:29:21.592070"], ["updated_at", "2015-10-28 13:29:21.592070"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.593768"], ["updated_at", "2015-10-28 13:29:21.593768"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.595107"], ["updated_at", "2015-10-28 13:29:21.595107"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.596406"], ["updated_at", "2015-10-28 13:29:21.596406"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:29:21.601281"], ["updated_at", "2015-10-28 13:29:21.601281"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.602849"], ["updated_at", "2015-10-28 13:29:21.602849"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.604624"], ["updated_at", "2015-10-28 13:29:21.604624"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.606024"], ["updated_at", "2015-10-28 13:29:21.606024"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:29:21.612519"], ["updated_at", "2015-10-28 13:29:21.612519"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.614270"], ["updated_at", "2015-10-28 13:29:21.614270"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.615766"], ["updated_at", "2015-10-28 13:29:21.615766"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.617214"], ["updated_at", "2015-10-28 13:29:21.617214"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:29:21.621558"], ["updated_at", "2015-10-28 13:29:21.621558"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.623070"], ["updated_at", "2015-10-28 13:29:21.623070"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.624344"], ["updated_at", "2015-10-28 13:29:21.624344"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.625563"], ["updated_at", "2015-10-28 13:29:21.625563"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.3ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:29:21.629273"], ["updated_at", "2015-10-28 13:29:21.629273"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.630762"], ["updated_at", "2015-10-28 13:29:21.630762"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.631990"], ["updated_at", "2015-10-28 13:29:21.631990"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:29:21.633212"], ["updated_at", "2015-10-28 13:29:21.633212"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 0.4ms [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.639234"], ["updated_at", "2015-10-28 13:29:21.639234"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:29:21.641256"], ["updated_at", "2015-10-28 13:29:21.641256"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.677684"], ["updated_at", "2015-10-28 13:29:21.677684"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:29:21.679652"], ["updated_at", "2015-10-28 13:29:21.679652"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.684029"], ["updated_at", "2015-10-28 13:29:21.684029"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:29:21.685725"], ["updated_at", "2015-10-28 13:29:21.685725"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.692419"], ["updated_at", "2015-10-28 13:29:21.692419"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:29:21.694716"], ["updated_at", "2015-10-28 13:29:21.694716"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.700584"], ["updated_at", "2015-10-28 13:29:21.700584"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:29:21.702330"], ["updated_at", "2015-10-28 13:29:21.702330"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.706684"], ["updated_at", "2015-10-28 13:29:21.706684"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:29:21.708567"], ["updated_at", "2015-10-28 13:29:21.708567"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.721594"], ["updated_at", "2015-10-28 13:29:21.721594"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:29:21.723334"], ["updated_at", "2015-10-28 13:29:21.723334"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.742249"], ["updated_at", "2015-10-28 13:29:21.742249"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:29:21.743955"], ["updated_at", "2015-10-28 13:29:21.743955"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:29:21.745619"], ["updated_at", "2015-10-28 13:29:21.745619"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.749199"], ["updated_at", "2015-10-28 13:29:21.749199"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.751036"], ["updated_at", "2015-10-28 13:29:21.751036"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.755319"], ["updated_at", "2015-10-28 13:29:21.755319"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:29:21.756951"], ["updated_at", "2015-10-28 13:29:21.756951"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:29:21.758607"], ["updated_at", "2015-10-28 13:29:21.758607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.764679"], ["updated_at", "2015-10-28 13:29:21.764679"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.768667"], ["updated_at", "2015-10-28 13:29:21.768667"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.774028"], ["updated_at", "2015-10-28 13:29:21.774028"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:29:21.775970"], ["updated_at", "2015-10-28 13:29:21.775970"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:29:21.777697"], ["updated_at", "2015-10-28 13:29:21.777697"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.778987"], ["updated_at", "2015-10-28 13:29:21.778987"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:29:21.780201"], ["updated_at", "2015-10-28 13:29:21.780201"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:29:21.783383"], ["updated_at", "2015-10-28 13:29:21.783383"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:29:21.785233"], ["updated_at", "2015-10-28 13:29:21.785233"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:29:21.795571"], ["updated_at", "2015-10-28 13:29:21.795571"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:29:21.799330"], ["updated_at", "2015-10-28 13:29:21.799330"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:30:09.381549"], ["updated_at", "2015-10-28 13:30:09.381549"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.397290"], ["updated_at", "2015-10-28 13:30:09.397290"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.402763"], ["updated_at", "2015-10-28 13:30:09.402763"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.410993"], ["updated_at", "2015-10-28 13:30:09.410993"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 9.0ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:30:09.450013"], ["updated_at", "2015-10-28 13:30:09.450013"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.451580"], ["updated_at", "2015-10-28 13:30:09.451580"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.453190"], ["updated_at", "2015-10-28 13:30:09.453190"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.454550"], ["updated_at", "2015-10-28 13:30:09.454550"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.0ms) Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.4ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:30:09.476855"], ["updated_at", "2015-10-28 13:30:09.476855"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.478471"], ["updated_at", "2015-10-28 13:30:09.478471"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.479812"], ["updated_at", "2015-10-28 13:30:09.479812"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.481092"], ["updated_at", "2015-10-28 13:30:09.481092"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:30:09.498566"], ["updated_at", "2015-10-28 13:30:09.498566"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.502098"], ["updated_at", "2015-10-28 13:30:09.502098"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.506352"], ["updated_at", "2015-10-28 13:30:09.506352"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.510958"], ["updated_at", "2015-10-28 13:30:09.510958"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms) [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:30:09.523831"], ["updated_at", "2015-10-28 13:30:09.523831"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.525646"], ["updated_at", "2015-10-28 13:30:09.525646"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.527181"], ["updated_at", "2015-10-28 13:30:09.527181"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.528633"], ["updated_at", "2015-10-28 13:30:09.528633"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:30:09.681409"], ["updated_at", "2015-10-28 13:30:09.681409"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.683077"], ["updated_at", "2015-10-28 13:30:09.683077"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.684394"], ["updated_at", "2015-10-28 13:30:09.684394"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.685607"], ["updated_at", "2015-10-28 13:30:09.685607"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:30:09.690751"], ["updated_at", "2015-10-28 13:30:09.690751"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.692315"], ["updated_at", "2015-10-28 13:30:09.692315"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.693765"], ["updated_at", "2015-10-28 13:30:09.693765"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.695160"], ["updated_at", "2015-10-28 13:30:09.695160"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 19.8ms Sent mail to user7@sleede.com (6.6ms) Date: Wed, 28 Oct 2015 14:30:09 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630cde1b002b_16d2d3ff1988601e032758@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:30:09.727764"], ["updated_at", "2015-10-28 13:30:09.727764"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.729664"], ["updated_at", "2015-10-28 13:30:09.729664"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.731401"], ["updated_at", "2015-10-28 13:30:09.731401"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.733399"], ["updated_at", "2015-10-28 13:30:09.733399"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.6ms Sent mail to user8@sleede.com (3.5ms) Date: Wed, 28 Oct 2015 14:30:09 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630cde1b49ec_16d2d3ff1988601e0328e3@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:30:09.768223"], ["updated_at", "2015-10-28 13:30:09.768223"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.770406"], ["updated_at", "2015-10-28 13:30:09.770406"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.772663"], ["updated_at", "2015-10-28 13:30:09.772663"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.776247"], ["updated_at", "2015-10-28 13:30:09.776247"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user9@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 14:30:09 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630cde1be88a_16d2d3ff1988601e0329c5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:30:09.784298"], ["updated_at", "2015-10-28 13:30:09.784298"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.786437"], ["updated_at", "2015-10-28 13:30:09.786437"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.788264"], ["updated_at", "2015-10-28 13:30:09.788264"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:09.789986"], ["updated_at", "2015-10-28 13:30:09.789986"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.9ms Sent mail to user10@sleede.com (3.6ms) Date: Wed, 28 Oct 2015 14:30:09 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630cde1c31ed_16d2d3ff1988601e0330dd@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.805762"], ["updated_at", "2015-10-28 13:30:09.805762"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:30:09.808003"], ["updated_at", "2015-10-28 13:30:09.808003"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.815858"], ["updated_at", "2015-10-28 13:30:09.815858"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:30:09.817803"], ["updated_at", "2015-10-28 13:30:09.817803"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.823417"], ["updated_at", "2015-10-28 13:30:09.823417"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:30:09.825638"], ["updated_at", "2015-10-28 13:30:09.825638"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.834302"], ["updated_at", "2015-10-28 13:30:09.834302"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:30:09.837687"], ["updated_at", "2015-10-28 13:30:09.837687"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.845062"], ["updated_at", "2015-10-28 13:30:09.845062"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:30:09.847246"], ["updated_at", "2015-10-28 13:30:09.847246"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.856618"], ["updated_at", "2015-10-28 13:30:09.856618"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:30:09.861442"], ["updated_at", "2015-10-28 13:30:09.861442"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.868609"], ["updated_at", "2015-10-28 13:30:09.868609"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:30:09.870308"], ["updated_at", "2015-10-28 13:30:09.870308"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.889858"], ["updated_at", "2015-10-28 13:30:09.889858"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:30:09.891968"], ["updated_at", "2015-10-28 13:30:09.891968"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:30:09.893831"], ["updated_at", "2015-10-28 13:30:09.893831"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.895701"], ["updated_at", "2015-10-28 13:30:09.895701"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.897639"], ["updated_at", "2015-10-28 13:30:09.897639"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.904718"], ["updated_at", "2015-10-28 13:30:09.904718"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:30:09.910206"], ["updated_at", "2015-10-28 13:30:09.910206"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:30:09.914041"], ["updated_at", "2015-10-28 13:30:09.914041"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.915510"], ["updated_at", "2015-10-28 13:30:09.915510"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.916760"], ["updated_at", "2015-10-28 13:30:09.916760"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.920544"], ["updated_at", "2015-10-28 13:30:09.920544"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:30:09.922153"], ["updated_at", "2015-10-28 13:30:09.922153"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:30:09.924035"], ["updated_at", "2015-10-28 13:30:09.924035"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.925313"], ["updated_at", "2015-10-28 13:30:09.925313"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:09.926489"], ["updated_at", "2015-10-28 13:30:09.926489"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:09.929915"], ["updated_at", "2015-10-28 13:30:09.929915"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:30:09.931361"], ["updated_at", "2015-10-28 13:30:09.931361"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (1.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:09.942224"], ["updated_at", "2015-10-28 13:30:09.942224"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:30:09.944169"], ["updated_at", "2015-10-28 13:30:09.944169"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:30:36.130261"], ["updated_at", "2015-10-28 13:30:36.130261"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.146578"], ["updated_at", "2015-10-28 13:30:36.146578"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.153865"], ["updated_at", "2015-10-28 13:30:36.153865"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.160887"], ["updated_at", "2015-10-28 13:30:36.160887"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 9.0ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:30:36.198843"], ["updated_at", "2015-10-28 13:30:36.198843"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.200706"], ["updated_at", "2015-10-28 13:30:36.200706"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.202174"], ["updated_at", "2015-10-28 13:30:36.202174"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.203518"], ["updated_at", "2015-10-28 13:30:36.203518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.1ms) Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.3ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:30:36.225835"], ["updated_at", "2015-10-28 13:30:36.225835"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.227466"], ["updated_at", "2015-10-28 13:30:36.227466"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.228787"], ["updated_at", "2015-10-28 13:30:36.228787"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.230136"], ["updated_at", "2015-10-28 13:30:36.230136"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.6ms) Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:30:36.254417"], ["updated_at", "2015-10-28 13:30:36.254417"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.259229"], ["updated_at", "2015-10-28 13:30:36.259229"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.261079"], ["updated_at", "2015-10-28 13:30:36.261079"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.262633"], ["updated_at", "2015-10-28 13:30:36.262633"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:30:36.274118"], ["updated_at", "2015-10-28 13:30:36.274118"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.275803"], ["updated_at", "2015-10-28 13:30:36.275803"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.277175"], ["updated_at", "2015-10-28 13:30:36.277175"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.278497"], ["updated_at", "2015-10-28 13:30:36.278497"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:30:36.440719"], ["updated_at", "2015-10-28 13:30:36.440719"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.442453"], ["updated_at", "2015-10-28 13:30:36.442453"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.444055"], ["updated_at", "2015-10-28 13:30:36.444055"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.445730"], ["updated_at", "2015-10-28 13:30:36.445730"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:30:36.451146"], ["updated_at", "2015-10-28 13:30:36.451146"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.453258"], ["updated_at", "2015-10-28 13:30:36.453258"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.454876"], ["updated_at", "2015-10-28 13:30:36.454876"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.456375"], ["updated_at", "2015-10-28 13:30:36.456375"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 20.8ms Sent mail to user7@sleede.com (8.0ms) Date: Wed, 28 Oct 2015 14:30:36 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630cdfc76342_16d393ff8314601e07549@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:30:36.491299"], ["updated_at", "2015-10-28 13:30:36.491299"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.493363"], ["updated_at", "2015-10-28 13:30:36.493363"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.494838"], ["updated_at", "2015-10-28 13:30:36.494838"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.496225"], ["updated_at", "2015-10-28 13:30:36.496225"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.8ms Sent mail to user8@sleede.com (2.6ms) Date: Wed, 28 Oct 2015 14:30:36 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630cdfc7b42c_16d393ff8314601e0755d5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:30:36.510077"], ["updated_at", "2015-10-28 13:30:36.510077"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.512052"], ["updated_at", "2015-10-28 13:30:36.512052"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.513619"], ["updated_at", "2015-10-28 13:30:36.513619"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.514979"], ["updated_at", "2015-10-28 13:30:36.514979"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 14:30:36 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630cdfc7e769_16d393ff8314601e0756ad@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:30:36.521659"], ["updated_at", "2015-10-28 13:30:36.521659"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.523234"], ["updated_at", "2015-10-28 13:30:36.523234"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.524556"], ["updated_at", "2015-10-28 13:30:36.524556"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:30:36.525792"], ["updated_at", "2015-10-28 13:30:36.525792"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 14:30:36 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630cdfc81104_16d393ff8314601e0757ed@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.531636"], ["updated_at", "2015-10-28 13:30:36.531636"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:30:36.533265"], ["updated_at", "2015-10-28 13:30:36.533265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.568310"], ["updated_at", "2015-10-28 13:30:36.568310"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:30:36.570368"], ["updated_at", "2015-10-28 13:30:36.570368"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.575169"], ["updated_at", "2015-10-28 13:30:36.575169"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:30:36.577044"], ["updated_at", "2015-10-28 13:30:36.577044"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.581551"], ["updated_at", "2015-10-28 13:30:36.581551"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:30:36.583148"], ["updated_at", "2015-10-28 13:30:36.583148"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.587452"], ["updated_at", "2015-10-28 13:30:36.587452"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:30:36.589118"], ["updated_at", "2015-10-28 13:30:36.589118"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.593172"], ["updated_at", "2015-10-28 13:30:36.593172"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:30:36.594551"], ["updated_at", "2015-10-28 13:30:36.594551"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.599798"], ["updated_at", "2015-10-28 13:30:36.599798"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:30:36.602779"], ["updated_at", "2015-10-28 13:30:36.602779"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.628077"], ["updated_at", "2015-10-28 13:30:36.628077"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:30:36.630034"], ["updated_at", "2015-10-28 13:30:36.630034"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:30:36.631883"], ["updated_at", "2015-10-28 13:30:36.631883"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.633216"], ["updated_at", "2015-10-28 13:30:36.633216"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.634511"], ["updated_at", "2015-10-28 13:30:36.634511"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.637852"], ["updated_at", "2015-10-28 13:30:36.637852"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:30:36.639415"], ["updated_at", "2015-10-28 13:30:36.639415"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:30:36.640955"], ["updated_at", "2015-10-28 13:30:36.640955"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.642128"], ["updated_at", "2015-10-28 13:30:36.642128"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.643235"], ["updated_at", "2015-10-28 13:30:36.643235"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.646920"], ["updated_at", "2015-10-28 13:30:36.646920"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:30:36.648774"], ["updated_at", "2015-10-28 13:30:36.648774"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:30:36.650398"], ["updated_at", "2015-10-28 13:30:36.650398"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.651590"], ["updated_at", "2015-10-28 13:30:36.651590"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:30:36.652673"], ["updated_at", "2015-10-28 13:30:36.652673"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:30:36.655632"], ["updated_at", "2015-10-28 13:30:36.655632"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:30:36.657074"], ["updated_at", "2015-10-28 13:30:36.657074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:30:36.667195"], ["updated_at", "2015-10-28 13:30:36.667195"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:30:36.669012"], ["updated_at", "2015-10-28 13:30:36.669012"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.4ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:36:08.508693"], ["updated_at", "2015-10-28 13:36:08.508693"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.523643"], ["updated_at", "2015-10-28 13:36:08.523643"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.528423"], ["updated_at", "2015-10-28 13:36:08.528423"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.532096"], ["updated_at", "2015-10-28 13:36:08.532096"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 21ms (Views: 10.8ms | ActiveRecord: 0.0ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:36:08.576324"], ["updated_at", "2015-10-28 13:36:08.576324"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.578078"], ["updated_at", "2015-10-28 13:36:08.578078"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.579597"], ["updated_at", "2015-10-28 13:36:08.579597"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.580977"], ["updated_at", "2015-10-28 13:36:08.580977"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (12.5ms) Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:36:08.602632"], ["updated_at", "2015-10-28 13:36:08.602632"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.604216"], ["updated_at", "2015-10-28 13:36:08.604216"]] [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 INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.605563"], ["updated_at", "2015-10-28 13:36:08.605563"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.606849"], ["updated_at", "2015-10-28 13:36:08.606849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.6ms) Completed 200 OK in 10ms (Views: 4.4ms | ActiveRecord: 0.3ms) [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:36:08.624760"], ["updated_at", "2015-10-28 13:36:08.624760"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.626502"], ["updated_at", "2015-10-28 13:36:08.626502"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.628357"], ["updated_at", "2015-10-28 13:36:08.628357"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.632634"], ["updated_at", "2015-10-28 13:36:08.632634"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:36:08.648120"], ["updated_at", "2015-10-28 13:36:08.648120"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.649788"], ["updated_at", "2015-10-28 13:36:08.649788"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.651164"], ["updated_at", "2015-10-28 13:36:08.651164"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.652532"], ["updated_at", "2015-10-28 13:36:08.652532"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:36:08.805417"], ["updated_at", "2015-10-28 13:36:08.805417"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.807188"], ["updated_at", "2015-10-28 13:36:08.807188"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.808569"], ["updated_at", "2015-10-28 13:36:08.808569"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.809861"], ["updated_at", "2015-10-28 13:36:08.809861"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:36:08.814928"], ["updated_at", "2015-10-28 13:36:08.814928"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.816512"], ["updated_at", "2015-10-28 13:36:08.816512"]] [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 INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.818244"], ["updated_at", "2015-10-28 13:36:08.818244"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.819758"], ["updated_at", "2015-10-28 13:36:08.819758"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.7ms Sent mail to user7@sleede.com (6.0ms) Date: Wed, 28 Oct 2015 14:36:08 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630cf48cdd96_16d843fd8108601dc333b5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:36:08.849586"], ["updated_at", "2015-10-28 13:36:08.849586"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.851567"], ["updated_at", "2015-10-28 13:36:08.851567"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.853406"], ["updated_at", "2015-10-28 13:36:08.853406"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.855175"], ["updated_at", "2015-10-28 13:36:08.855175"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user8@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 14:36:08 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630cf48d1acf_16d843fd8108601dc33451@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:36:08.862670"], ["updated_at", "2015-10-28 13:36:08.862670"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.867322"], ["updated_at", "2015-10-28 13:36:08.867322"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.871844"], ["updated_at", "2015-10-28 13:36:08.871844"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.874650"], ["updated_at", "2015-10-28 13:36:08.874650"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 14:36:08 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630cf48d660b_16d843fd8108601dc335e6@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:36:08.882643"], ["updated_at", "2015-10-28 13:36:08.882643"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.884305"], ["updated_at", "2015-10-28 13:36:08.884305"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.885727"], ["updated_at", "2015-10-28 13:36:08.885727"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:36:08.887083"], ["updated_at", "2015-10-28 13:36:08.887083"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 14:36:08 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630cf48d9463_16d843fd8108601dc336db@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (1.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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.894090"], ["updated_at", "2015-10-28 13:36:08.894090"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:36:08.895560"], ["updated_at", "2015-10-28 13:36:08.895560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.898892"], ["updated_at", "2015-10-28 13:36:08.898892"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:36:08.900467"], ["updated_at", "2015-10-28 13:36:08.900467"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.906365"], ["updated_at", "2015-10-28 13:36:08.906365"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:36:08.908293"], ["updated_at", "2015-10-28 13:36:08.908293"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.915436"], ["updated_at", "2015-10-28 13:36:08.915436"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:36:08.918440"], ["updated_at", "2015-10-28 13:36:08.918440"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.923962"], ["updated_at", "2015-10-28 13:36:08.923962"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:36:08.925454"], ["updated_at", "2015-10-28 13:36:08.925454"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (2.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.930916"], ["updated_at", "2015-10-28 13:36:08.930916"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:36:08.932484"], ["updated_at", "2015-10-28 13:36:08.932484"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.935411"], ["updated_at", "2015-10-28 13:36:08.935411"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:36:08.936776"], ["updated_at", "2015-10-28 13:36:08.936776"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.939762"], ["updated_at", "2015-10-28 13:36:08.939762"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:36:08.941259"], ["updated_at", "2015-10-28 13:36:08.941259"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:36:08.942653"], ["updated_at", "2015-10-28 13:36:08.942653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.943711"], ["updated_at", "2015-10-28 13:36:08.943711"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.944849"], ["updated_at", "2015-10-28 13:36:08.944849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.948033"], ["updated_at", "2015-10-28 13:36:08.948033"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:36:08.949714"], ["updated_at", "2015-10-28 13:36:08.949714"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:36:08.952910"], ["updated_at", "2015-10-28 13:36:08.952910"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.954504"], ["updated_at", "2015-10-28 13:36:08.954504"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.956130"], ["updated_at", "2015-10-28 13:36:08.956130"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.959880"], ["updated_at", "2015-10-28 13:36:08.959880"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:36:08.961504"], ["updated_at", "2015-10-28 13:36:08.961504"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:36:08.965734"], ["updated_at", "2015-10-28 13:36:08.965734"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.968125"], ["updated_at", "2015-10-28 13:36:08.968125"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:36:08.970345"], ["updated_at", "2015-10-28 13:36:08.970345"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:36:08.975164"], ["updated_at", "2015-10-28 13:36:08.975164"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:36:08.976636"], ["updated_at", "2015-10-28 13:36:08.976636"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:36:08.979635"], ["updated_at", "2015-10-28 13:36:08.979635"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:36:08.981128"], ["updated_at", "2015-10-28 13:36:08.981128"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[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[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:37:39.119545"], ["updated_at", "2015-10-28 13:37:39.119545"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.134357"], ["updated_at", "2015-10-28 13:37:39.134357"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.138076"], ["updated_at", "2015-10-28 13:37:39.138076"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.141071"], ["updated_at", "2015-10-28 13:37:39.141071"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 20ms (Views: 9.8ms | ActiveRecord: 0.0ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:37:39.183402"], ["updated_at", "2015-10-28 13:37:39.183402"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.184994"], ["updated_at", "2015-10-28 13:37:39.184994"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.186366"], ["updated_at", "2015-10-28 13:37:39.186366"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.188594"], ["updated_at", "2015-10-28 13:37:39.188594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (14.0ms) Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.4ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:37:39.212358"], ["updated_at", "2015-10-28 13:37:39.212358"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.214019"], ["updated_at", "2015-10-28 13:37:39.214019"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.215393"], ["updated_at", "2015-10-28 13:37:39.215393"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.217414"], ["updated_at", "2015-10-28 13:37:39.217414"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.0ms) Completed 200 OK in 9ms (Views: 3.7ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:37:39.235953"], ["updated_at", "2015-10-28 13:37:39.235953"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.241288"], ["updated_at", "2015-10-28 13:37:39.241288"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.245817"], ["updated_at", "2015-10-28 13:37:39.245817"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.247651"], ["updated_at", "2015-10-28 13:37:39.247651"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.0ms) Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:37:39.259149"], ["updated_at", "2015-10-28 13:37:39.259149"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.261031"], ["updated_at", "2015-10-28 13:37:39.261031"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.262604"], ["updated_at", "2015-10-28 13:37:39.262604"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.264096"], ["updated_at", "2015-10-28 13:37:39.264096"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:37:39.424409"], ["updated_at", "2015-10-28 13:37:39.424409"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.426146"], ["updated_at", "2015-10-28 13:37:39.426146"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.427539"], ["updated_at", "2015-10-28 13:37:39.427539"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.428834"], ["updated_at", "2015-10-28 13:37:39.428834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:37:39.433745"], ["updated_at", "2015-10-28 13:37:39.433745"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.435305"], ["updated_at", "2015-10-28 13:37:39.435305"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.436888"], ["updated_at", "2015-10-28 13:37:39.436888"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.438260"], ["updated_at", "2015-10-28 13:37:39.438260"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.9ms Sent mail to user7@sleede.com (7.0ms) Date: Wed, 28 Oct 2015 14:37:39 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630cfa3713b9_16d9b3ff9bdc5e1d489037@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:37:39.470863"], ["updated_at", "2015-10-28 13:37:39.470863"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.472758"], ["updated_at", "2015-10-28 13:37:39.472758"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.474675"], ["updated_at", "2015-10-28 13:37:39.474675"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.476516"], ["updated_at", "2015-10-28 13:37:39.476516"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.4ms Sent mail to user8@sleede.com (2.1ms) Date: Wed, 28 Oct 2015 14:37:39 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630cfa37622e_16d9b3ff9bdc5e1d48914e@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:37:39.489788"], ["updated_at", "2015-10-28 13:37:39.489788"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.491359"], ["updated_at", "2015-10-28 13:37:39.491359"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.492630"], ["updated_at", "2015-10-28 13:37:39.492630"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.493903"], ["updated_at", "2015-10-28 13:37:39.493903"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 14:37:39 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630cfa379622_16d9b3ff9bdc5e1d48925c@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:37:39.500590"], ["updated_at", "2015-10-28 13:37:39.500590"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.502198"], ["updated_at", "2015-10-28 13:37:39.502198"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.503480"], ["updated_at", "2015-10-28 13:37:39.503480"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:37:39.504762"], ["updated_at", "2015-10-28 13:37:39.504762"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 14:37:39 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630cfa37bf03_16d9b3ff9bdc5e1d48936a@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.510623"], ["updated_at", "2015-10-28 13:37:39.510623"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:37:39.512130"], ["updated_at", "2015-10-28 13:37:39.512130"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.513386"], ["updated_at", "2015-10-28 13:37:39.513386"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:37:39.515398"], ["updated_at", "2015-10-28 13:37:39.515398"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.519689"], ["updated_at", "2015-10-28 13:37:39.519689"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:37:39.521729"], ["updated_at", "2015-10-28 13:37:39.521729"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.523480"], ["updated_at", "2015-10-28 13:37:39.523480"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.527218"], ["updated_at", "2015-10-28 13:37:39.527218"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:37:39.530736"], ["updated_at", "2015-10-28 13:37:39.530736"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.534306"], ["updated_at", "2015-10-28 13:37:39.534306"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.541380"], ["updated_at", "2015-10-28 13:37:39.541380"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:37:39.542860"], ["updated_at", "2015-10-28 13:37:39.542860"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.544546"], ["updated_at", "2015-10-28 13:37:39.544546"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.548211"], ["updated_at", "2015-10-28 13:37:39.548211"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:37:39.549701"], ["updated_at", "2015-10-28 13:37:39.549701"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.551053"], ["updated_at", "2015-10-28 13:37:39.551053"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:37:39.552649"], ["updated_at", "2015-10-28 13:37:39.552649"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.555553"], ["updated_at", "2015-10-28 13:37:39.555553"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:37:39.557032"], ["updated_at", "2015-10-28 13:37:39.557032"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.558444"], ["updated_at", "2015-10-28 13:37:39.558444"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:37:39.560029"], ["updated_at", "2015-10-28 13:37:39.560029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user16@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 14:37:39 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630cfa3896b7_16d9b3ff9bdc5e1d489499@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.567862"], ["updated_at", "2015-10-28 13:37:39.567862"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:37:39.569601"], ["updated_at", "2015-10-28 13:37:39.569601"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.571759"], ["updated_at", "2015-10-28 13:37:39.571759"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:37:39.574113"], ["updated_at", "2015-10-28 13:37:39.574113"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 54089fc6-0ada-4926-9982-55b20af6b13b) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] Sent mail to user17@sleede.com (1.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] Date: Wed, 28 Oct 2015 14:37:39 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630cfa392e79_16d9b3ff9bdc5e1d489532@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [54089fc6-0ada-4926-9982-55b20af6b13b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.85ms [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.604664"], ["updated_at", "2015-10-28 13:37:39.604664"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:37:39.606257"], ["updated_at", "2015-10-28 13:37:39.606257"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.607594"], ["updated_at", "2015-10-28 13:37:39.607594"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:37:39.608818"], ["updated_at", "2015-10-28 13:37:39.608818"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.609902"], ["updated_at", "2015-10-28 13:37:39.609902"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.610888"], ["updated_at", "2015-10-28 13:37:39.610888"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.613956"], ["updated_at", "2015-10-28 13:37:39.613956"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:37:39.617111"], ["updated_at", "2015-10-28 13:37:39.617111"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.619347"], ["updated_at", "2015-10-28 13:37:39.619347"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:37:39.622332"], ["updated_at", "2015-10-28 13:37:39.622332"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.624140"], ["updated_at", "2015-10-28 13:37:39.624140"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.625520"], ["updated_at", "2015-10-28 13:37:39.625520"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.630849"], ["updated_at", "2015-10-28 13:37:39.630849"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:37:39.634280"], ["updated_at", "2015-10-28 13:37:39.634280"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.637374"], ["updated_at", "2015-10-28 13:37:39.637374"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:37:39.640316"], ["updated_at", "2015-10-28 13:37:39.640316"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.641669"], ["updated_at", "2015-10-28 13:37:39.641669"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.642689"], ["updated_at", "2015-10-28 13:37:39.642689"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:37:39.646254"], ["updated_at", "2015-10-28 13:37:39.646254"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:37:39.647777"], ["updated_at", "2015-10-28 13:37:39.647777"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.649070"], ["updated_at", "2015-10-28 13:37:39.649070"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:37:39.655086"], ["updated_at", "2015-10-28 13:37:39.655086"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:37:39.659290"], ["updated_at", "2015-10-28 13:37:39.659290"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:37:39.660898"], ["updated_at", "2015-10-28 13:37:39.660898"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:37:39.662363"], ["updated_at", "2015-10-28 13:37:39.662363"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:37:39.664356"], ["updated_at", "2015-10-28 13:37:39.664356"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations" [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028111239')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213150625') [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213152846')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110352') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110353')[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:38:03.645788"], ["updated_at", "2015-10-28 13:38:03.645788"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.662205"], ["updated_at", "2015-10-28 13:38:03.662205"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.672616"], ["updated_at", "2015-10-28 13:38:03.672616"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.676808"], ["updated_at", "2015-10-28 13:38:03.676808"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 9.1ms | ActiveRecord: 0.0ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:38:03.714879"], ["updated_at", "2015-10-28 13:38:03.714879"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.716481"], ["updated_at", "2015-10-28 13:38:03.716481"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.717854"], ["updated_at", "2015-10-28 13:38:03.717854"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.719138"], ["updated_at", "2015-10-28 13:38:03.719138"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (12.7ms) Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.3ms) [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:38:03.740260"], ["updated_at", "2015-10-28 13:38:03.740260"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:03.741994"], ["updated_at", "2015-10-28 13:38:03.741994"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.743303"], ["updated_at", "2015-10-28 13:38:03.743303"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.744578"], ["updated_at", "2015-10-28 13:38:03.744578"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.8ms) Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:38:03.762710"], ["updated_at", "2015-10-28 13:38:03.762710"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.767638"], ["updated_at", "2015-10-28 13:38:03.767638"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.771590"], ["updated_at", "2015-10-28 13:38:03.771590"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.774389"], ["updated_at", "2015-10-28 13:38:03.774389"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:38:03.785813"], ["updated_at", "2015-10-28 13:38:03.785813"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.787470"], ["updated_at", "2015-10-28 13:38:03.787470"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.789248"], ["updated_at", "2015-10-28 13:38:03.789248"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.791607"], ["updated_at", "2015-10-28 13:38:03.791607"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:38:03.945876"], ["updated_at", "2015-10-28 13:38:03.945876"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:03.947653"], ["updated_at", "2015-10-28 13:38:03.947653"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.949018"], ["updated_at", "2015-10-28 13:38:03.949018"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.950312"], ["updated_at", "2015-10-28 13:38:03.950312"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:38:03.955354"], ["updated_at", "2015-10-28 13:38:03.955354"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:03.956950"], ["updated_at", "2015-10-28 13:38:03.956950"]] [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 INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.958493"], ["updated_at", "2015-10-28 13:38:03.958493"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.959883"], ["updated_at", "2015-10-28 13:38:03.959883"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.4ms Sent mail to user7@sleede.com (7.9ms) Date: Wed, 28 Oct 2015 14:38:03 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630cfbbf06df_16da13fe878c601d837d3@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:38:03.992554"], ["updated_at", "2015-10-28 13:38:03.992554"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:03.994833"], ["updated_at", "2015-10-28 13:38:03.994833"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:03.996922"], ["updated_at", "2015-10-28 13:38:03.996922"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:03.998827"], ["updated_at", "2015-10-28 13:38:03.998827"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.5ms Sent mail to user8@sleede.com (3.2ms) Date: Wed, 28 Oct 2015 14:38:04 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630cfbcfd1_16da13fe878c601d83820@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:38:04.012393"], ["updated_at", "2015-10-28 13:38:04.012393"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.014266"], ["updated_at", "2015-10-28 13:38:04.014266"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.015581"], ["updated_at", "2015-10-28 13:38:04.015581"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:04.016825"], ["updated_at", "2015-10-28 13:38:04.016825"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 14:38:04 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630cfbc4e48_16da13fe878c601d83967@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:38:04.023720"], ["updated_at", "2015-10-28 13:38:04.023720"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.025430"], ["updated_at", "2015-10-28 13:38:04.025430"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.027082"], ["updated_at", "2015-10-28 13:38:04.027082"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:38:04.028520"], ["updated_at", "2015-10-28 13:38:04.028520"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.2ms Sent mail to user10@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 14:38:04 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630cfbc7aa8_16da13fe878c601d840d9@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.034917"], ["updated_at", "2015-10-28 13:38:04.034917"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:38:04.036466"], ["updated_at", "2015-10-28 13:38:04.036466"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.037757"], ["updated_at", "2015-10-28 13:38:04.037757"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:38:04.039697"], ["updated_at", "2015-10-28 13:38:04.039697"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.044436"], ["updated_at", "2015-10-28 13:38:04.044436"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:38:04.046267"], ["updated_at", "2015-10-28 13:38:04.046267"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.048280"], ["updated_at", "2015-10-28 13:38:04.048280"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.053846"], ["updated_at", "2015-10-28 13:38:04.053846"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:38:04.059267"], ["updated_at", "2015-10-28 13:38:04.059267"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.062994"], ["updated_at", "2015-10-28 13:38:04.062994"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.067715"], ["updated_at", "2015-10-28 13:38:04.067715"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:38:04.069622"], ["updated_at", "2015-10-28 13:38:04.069622"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.071094"], ["updated_at", "2015-10-28 13:38:04.071094"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.076303"], ["updated_at", "2015-10-28 13:38:04.076303"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:38:04.077908"], ["updated_at", "2015-10-28 13:38:04.077908"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.079384"], ["updated_at", "2015-10-28 13:38:04.079384"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:38:04.081598"], ["updated_at", "2015-10-28 13:38:04.081598"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.084923"], ["updated_at", "2015-10-28 13:38:04.084923"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:38:04.086435"], ["updated_at", "2015-10-28 13:38:04.086435"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.087751"], ["updated_at", "2015-10-28 13:38:04.087751"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:38:04.091314"], ["updated_at", "2015-10-28 13:38:04.091314"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.2ms Sent mail to user16@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 14:38:04 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630cfbc17623_16da13fe878c601d8412c@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.099625"], ["updated_at", "2015-10-28 13:38:04.099625"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:38:04.101315"], ["updated_at", "2015-10-28 13:38:04.101315"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.105443"], ["updated_at", "2015-10-28 13:38:04.105443"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:38:04.110108"], ["updated_at", "2015-10-28 13:38:04.110108"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0e0ca058-5e02-441b-ab31-553718d62e6c) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] NotificationsMailer#send_mail_by: processed outbound mail in 3.1ms [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] Sent mail to user17@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] Date: Wed, 28 Oct 2015 14:38:04 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630cfbc20978_16da13fe878c601d84213@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [0e0ca058-5e02-441b-ab31-553718d62e6c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.76ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.136450"], ["updated_at", "2015-10-28 13:38:04.136450"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:38:04.137942"], ["updated_at", "2015-10-28 13:38:04.137942"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.140420"], ["updated_at", "2015-10-28 13:38:04.140420"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:38:04.142592"], ["updated_at", "2015-10-28 13:38:04.142592"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.144314"], ["updated_at", "2015-10-28 13:38:04.144314"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.146153"], ["updated_at", "2015-10-28 13:38:04.146153"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.176375"], ["updated_at", "2015-10-28 13:38:04.176375"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:38:04.178004"], ["updated_at", "2015-10-28 13:38:04.178004"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.179335"], ["updated_at", "2015-10-28 13:38:04.179335"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:38:04.180580"], ["updated_at", "2015-10-28 13:38:04.180580"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.181727"], ["updated_at", "2015-10-28 13:38:04.181727"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.182805"], ["updated_at", "2015-10-28 13:38:04.182805"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.186415"], ["updated_at", "2015-10-28 13:38:04.186415"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:38:04.187892"], ["updated_at", "2015-10-28 13:38:04.187892"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.189200"], ["updated_at", "2015-10-28 13:38:04.189200"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:38:04.190411"], ["updated_at", "2015-10-28 13:38:04.190411"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.191522"], ["updated_at", "2015-10-28 13:38:04.191522"]] [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 "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.192556"], ["updated_at", "2015-10-28 13:38:04.192556"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:38:04.195360"], ["updated_at", "2015-10-28 13:38:04.195360"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:38:04.197182"], ["updated_at", "2015-10-28 13:38:04.197182"]] [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 [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.198587"], ["updated_at", "2015-10-28 13:38:04.198587"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:38:04.204055"], ["updated_at", "2015-10-28 13:38:04.204055"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:38:04.207683"], ["updated_at", "2015-10-28 13:38:04.207683"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:38:04.209206"], ["updated_at", "2015-10-28 13:38:04.209206"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:38:04.211655"], ["updated_at", "2015-10-28 13:38:04.211655"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:38:04.214546"], ["updated_at", "2015-10-28 13:38:04.214546"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[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[36m (2.4ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.5ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.7ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (2.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (2.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (2.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:53:25.066719"], ["updated_at", "2015-10-28 13:53:25.066719"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.092140"], ["updated_at", "2015-10-28 13:53:25.092140"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_1"], ["created_at", "2015-10-28 13:53:25.108395"], ["updated_at", "2015-10-28 13:53:25.108395"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.113304"], ["updated_at", "2015-10-28 13:53:25.113304"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 18ms (Views: 9.1ms | ActiveRecord: 0.0ms) [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:53:25.151018"], ["updated_at", "2015-10-28 13:53:25.151018"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.152898"], ["updated_at", "2015-10-28 13:53:25.152898"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:53:25.156398"], ["updated_at", "2015-10-28 13:53:25.156398"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.160067"], ["updated_at", "2015-10-28 13:53:25.160067"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/index.json.jbuilder (20.8ms) Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.4ms) [1m[35m (3.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:53:25.199313"], ["updated_at", "2015-10-28 13:53:25.199313"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.204507"], ["updated_at", "2015-10-28 13:53:25.204507"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:53:25.210779"], ["updated_at", "2015-10-28 13:53:25.210779"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.219034"], ["updated_at", "2015-10-28 13:53:25.219034"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (7.2ms) Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.4ms) [1m[35m (1.4ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:53:25.253215"], ["updated_at", "2015-10-28 13:53:25.253215"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.257300"], ["updated_at", "2015-10-28 13:53:25.257300"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:53:25.262821"], ["updated_at", "2015-10-28 13:53:25.262821"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.264404"], ["updated_at", "2015-10-28 13:53:25.264404"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.3ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms) [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:53:25.285448"], ["updated_at", "2015-10-28 13:53:25.285448"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.292145"], ["updated_at", "2015-10-28 13:53:25.292145"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_5"], ["created_at", "2015-10-28 13:53:25.297427"], ["updated_at", "2015-10-28 13:53:25.297427"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.299708"], ["updated_at", "2015-10-28 13:53:25.299708"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:53:25.467404"], ["updated_at", "2015-10-28 13:53:25.467404"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.469419"], ["updated_at", "2015-10-28 13:53:25.469419"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_6"], ["created_at", "2015-10-28 13:53:25.472151"], ["updated_at", "2015-10-28 13:53:25.472151"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.473850"], ["updated_at", "2015-10-28 13:53:25.473850"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:53:25.483898"], ["updated_at", "2015-10-28 13:53:25.483898"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.486745"], ["updated_at", "2015-10-28 13:53:25.486745"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:53:25.488816"], ["updated_at", "2015-10-28 13:53:25.488816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.490419"], ["updated_at", "2015-10-28 13:53:25.490419"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 22.0ms [1m[36m (2.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:53:25.521589"], ["updated_at", "2015-10-28 13:53:25.521589"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.524674"], ["updated_at", "2015-10-28 13:53:25.524674"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_8"], ["created_at", "2015-10-28 13:53:25.527931"], ["updated_at", "2015-10-28 13:53:25.527931"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.529805"], ["updated_at", "2015-10-28 13:53:25.529805"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 15.5ms [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:53:25.551147"], ["updated_at", "2015-10-28 13:53:25.551147"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.555221"], ["updated_at", "2015-10-28 13:53:25.555221"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:53:25.557295"], ["updated_at", "2015-10-28 13:53:25.557295"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.558749"], ["updated_at", "2015-10-28 13:53:25.558749"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 11.3ms [1m[36m (2.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:53:25.576136"], ["updated_at", "2015-10-28 13:53:25.576136"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.578846"], ["updated_at", "2015-10-28 13:53:25.578846"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_10"], ["created_at", "2015-10-28 13:53:25.584885"], ["updated_at", "2015-10-28 13:53:25.584885"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:53:25.587155"], ["updated_at", "2015-10-28 13:53:25.587155"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 13.0ms [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.605440"], ["updated_at", "2015-10-28 13:53:25.605440"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:53:25.607479"], ["updated_at", "2015-10-28 13:53:25.607479"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:53:25.610797"], ["updated_at", "2015-10-28 13:53:25.610797"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.616120"], ["updated_at", "2015-10-28 13:53:25.616120"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:53:25.618851"], ["updated_at", "2015-10-28 13:53:25.618851"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:53:25.622896"], ["updated_at", "2015-10-28 13:53:25.622896"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.628278"], ["updated_at", "2015-10-28 13:53:25.628278"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:53:25.631927"], ["updated_at", "2015-10-28 13:53:25.631927"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:53:25.636657"], ["updated_at", "2015-10-28 13:53:25.636657"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.642807"], ["updated_at", "2015-10-28 13:53:25.642807"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:53:25.648160"], ["updated_at", "2015-10-28 13:53:25.648160"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_14' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_14"], ["created_at", "2015-10-28 13:53:25.654861"], ["updated_at", "2015-10-28 13:53:25.654861"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.659764"], ["updated_at", "2015-10-28 13:53:25.659764"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:53:25.661841"], ["updated_at", "2015-10-28 13:53:25.661841"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_15' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_15"], ["created_at", "2015-10-28 13:53:25.667640"], ["updated_at", "2015-10-28 13:53:25.667640"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.674611"], ["updated_at", "2015-10-28 13:53:25.674611"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:53:25.676620"], ["updated_at", "2015-10-28 13:53:25.676620"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_16' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_16"], ["created_at", "2015-10-28 13:53:25.678956"], ["updated_at", "2015-10-28 13:53:25.678956"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (2.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.687505"], ["updated_at", "2015-10-28 13:53:25.687505"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:53:25.691252"], ["updated_at", "2015-10-28 13:53:25.691252"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_17' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_17"], ["created_at", "2015-10-28 13:53:25.695579"], ["updated_at", "2015-10-28 13:53:25.695579"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.5ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.702953"], ["updated_at", "2015-10-28 13:53:25.702953"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:53:25.709664"], ["updated_at", "2015-10-28 13:53:25.709664"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_18' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_18"], ["created_at", "2015-10-28 13:53:25.717606"], ["updated_at", "2015-10-28 13:53:25.717606"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:53:25.721758"], ["updated_at", "2015-10-28 13:53:25.721758"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.724055"], ["updated_at", "2015-10-28 13:53:25.724055"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_19' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_19"], ["created_at", "2015-10-28 13:53:25.729394"], ["updated_at", "2015-10-28 13:53:25.729394"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.734249"], ["updated_at", "2015-10-28 13:53:25.734249"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:53:25.737818"], ["updated_at", "2015-10-28 13:53:25.737818"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_20' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_20"], ["created_at", "2015-10-28 13:53:25.740767"], ["updated_at", "2015-10-28 13:53:25.740767"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:53:25.746363"], ["updated_at", "2015-10-28 13:53:25.746363"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.748253"], ["updated_at", "2015-10-28 13:53:25.748253"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_21' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_21"], ["created_at", "2015-10-28 13:53:25.750561"], ["updated_at", "2015-10-28 13:53:25.750561"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.755530"], ["updated_at", "2015-10-28 13:53:25.755530"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:53:25.757398"], ["updated_at", "2015-10-28 13:53:25.757398"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_22' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_22"], ["created_at", "2015-10-28 13:53:25.763000"], ["updated_at", "2015-10-28 13:53:25.763000"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:53:25.767907"], ["updated_at", "2015-10-28 13:53:25.767907"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.772387"], ["updated_at", "2015-10-28 13:53:25.772387"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_23' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_23"], ["created_at", "2015-10-28 13:53:25.775165"], ["updated_at", "2015-10-28 13:53:25.775165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:53:25.778785"], ["updated_at", "2015-10-28 13:53:25.778785"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:53:25.782413"], ["updated_at", "2015-10-28 13:53:25.782413"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_24' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_24"], ["created_at", "2015-10-28 13:53:25.787968"], ["updated_at", "2015-10-28 13:53:25.787968"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:53:25.794748"], ["updated_at", "2015-10-28 13:53:25.794748"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:53:25.800327"], ["updated_at", "2015-10-28 13:53:25.800327"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_25' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_25"], ["created_at", "2015-10-28 13:53:25.803817"], ["updated_at", "2015-10-28 13:53:25.803817"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:55:07.556544"], ["updated_at", "2015-10-28 13:55:07.556544"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.579011"], ["updated_at", "2015-10-28 13:55:07.579011"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 13:55:07.599743"], ["updated_at", "2015-10-28 13:55:07.599743"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:07.602526"], ["updated_at", "2015-10-28 13:55:07.602526"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 8.8ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:55:07.643377"], ["updated_at", "2015-10-28 13:55:07.643377"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:07.645930"], ["updated_at", "2015-10-28 13:55:07.645930"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:55:07.650454"], ["updated_at", "2015-10-28 13:55:07.650454"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:07.655115"], ["updated_at", "2015-10-28 13:55:07.655115"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.6ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (15.2ms) Completed 500 Internal Server Error in 18ms (ActiveRecord: 1.0ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:55:07.682758"], ["updated_at", "2015-10-28 13:55:07.682758"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:07.685832"], ["updated_at", "2015-10-28 13:55:07.685832"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:55:07.691747"], ["updated_at", "2015-10-28 13:55:07.691747"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:07.695800"], ["updated_at", "2015-10-28 13:55:07.695800"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.4ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.2ms) Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.5ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:55:07.725386"], ["updated_at", "2015-10-28 13:55:07.725386"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:07.727613"], ["updated_at", "2015-10-28 13:55:07.727613"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:55:07.730723"], ["updated_at", "2015-10-28 13:55:07.730723"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:07.735834"], ["updated_at", "2015-10-28 13:55:07.735834"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.7ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms) [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:55:07.756069"], ["updated_at", "2015-10-28 13:55:07.756069"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.760774"], ["updated_at", "2015-10-28 13:55:07.760774"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 13:55:07.763098"], ["updated_at", "2015-10-28 13:55:07.763098"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:07.764564"], ["updated_at", "2015-10-28 13:55:07.764564"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:55:07.931125"], ["updated_at", "2015-10-28 13:55:07.931125"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.933986"], ["updated_at", "2015-10-28 13:55:07.933986"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 13:55:07.936803"], ["updated_at", "2015-10-28 13:55:07.936803"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:07.938691"], ["updated_at", "2015-10-28 13:55:07.938691"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:55:07.949330"], ["updated_at", "2015-10-28 13:55:07.949330"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:07.951786"], ["updated_at", "2015-10-28 13:55:07.951786"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:55:07.957900"], ["updated_at", "2015-10-28 13:55:07.957900"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:07.961276"], ["updated_at", "2015-10-28 13:55:07.961276"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 20.8ms [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:55:07.991587"], ["updated_at", "2015-10-28 13:55:07.991587"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:07.993878"], ["updated_at", "2015-10-28 13:55:07.993878"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 13:55:07.999882"], ["updated_at", "2015-10-28 13:55:07.999882"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:08.005780"], ["updated_at", "2015-10-28 13:55:08.005780"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 12.3ms [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:55:08.027292"], ["updated_at", "2015-10-28 13:55:08.027292"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:08.030831"], ["updated_at", "2015-10-28 13:55:08.030831"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:55:08.033189"], ["updated_at", "2015-10-28 13:55:08.033189"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:08.035391"], ["updated_at", "2015-10-28 13:55:08.035391"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 9.8ms [1m[35m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:55:08.054167"], ["updated_at", "2015-10-28 13:55:08.054167"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.058290"], ["updated_at", "2015-10-28 13:55:08.058290"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 13:55:08.063741"], ["updated_at", "2015-10-28 13:55:08.063741"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:55:08.067804"], ["updated_at", "2015-10-28 13:55:08.067804"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 8.7ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.080671"], ["updated_at", "2015-10-28 13:55:08.080671"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:55:08.082490"], ["updated_at", "2015-10-28 13:55:08.082490"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.085087"], ["updated_at", "2015-10-28 13:55:08.085087"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:55:08.087740"], ["updated_at", "2015-10-28 13:55:08.087740"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.090890"], ["updated_at", "2015-10-28 13:55:08.090890"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:55:08.093993"], ["updated_at", "2015-10-28 13:55:08.093993"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.096751"], ["updated_at", "2015-10-28 13:55:08.096751"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:08.100914"], ["updated_at", "2015-10-28 13:55:08.100914"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:55:08.103311"], ["updated_at", "2015-10-28 13:55:08.103311"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.105514"], ["updated_at", "2015-10-28 13:55:08.105514"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.117395"], ["updated_at", "2015-10-28 13:55:08.117395"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:55:08.120740"], ["updated_at", "2015-10-28 13:55:08.120740"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.127056"], ["updated_at", "2015-10-28 13:55:08.127056"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:08.133294"], ["updated_at", "2015-10-28 13:55:08.133294"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:55:08.136302"], ["updated_at", "2015-10-28 13:55:08.136302"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.140703"], ["updated_at", "2015-10-28 13:55:08.140703"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:55:08.144718"], ["updated_at", "2015-10-28 13:55:08.144718"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.151998"], ["updated_at", "2015-10-28 13:55:08.151998"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:55:08.155868"], ["updated_at", "2015-10-28 13:55:08.155868"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.162765"], ["updated_at", "2015-10-28 13:55:08.162765"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:55:08.168710"], ["updated_at", "2015-10-28 13:55:08.168710"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (4.8ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 26.8ms Sent mail to user16@sleede.com (8.2ms) Date: Wed, 28 Oct 2015 14:55:08 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d3bc31651_16e9a3fc7544601d027674@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:08.209400"], ["updated_at", "2015-10-28 13:55:08.209400"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:55:08.211540"], ["updated_at", "2015-10-28 13:55:08.211540"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.214900"], ["updated_at", "2015-10-28 13:55:08.214900"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.4ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:55:08.223452"], ["updated_at", "2015-10-28 13:55:08.223452"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 243deabe-53af-434c-82ad-6d6a5a442808) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] Sent mail to user17@sleede.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] Date: Wed, 28 Oct 2015 14:55:08 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d3bc4026c_16e9a3fc7544601d0277f4@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [243deabe-53af-434c-82ad-6d6a5a442808] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.08ms [1m[36m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.268532"], ["updated_at", "2015-10-28 13:55:08.268532"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:55:08.270309"], ["updated_at", "2015-10-28 13:55:08.270309"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.272721"], ["updated_at", "2015-10-28 13:55:08.272721"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:55:08.276276"], ["updated_at", "2015-10-28 13:55:08.276276"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:08.279385"], ["updated_at", "2015-10-28 13:55:08.279385"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:55:08.282764"], ["updated_at", "2015-10-28 13:55:08.282764"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:08.286336"], ["updated_at", "2015-10-28 13:55:08.286336"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:55:08.288108"], ["updated_at", "2015-10-28 13:55:08.288108"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.292574"], ["updated_at", "2015-10-28 13:55:08.292574"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:55:08.295744"], ["updated_at", "2015-10-28 13:55:08.295744"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.297279"], ["updated_at", "2015-10-28 13:55:08.297279"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:55:08.300968"], ["updated_at", "2015-10-28 13:55:08.300968"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.308280"], ["updated_at", "2015-10-28 13:55:08.308280"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:55:08.310749"], ["updated_at", "2015-10-28 13:55:08.310749"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.313383"], ["updated_at", "2015-10-28 13:55:08.313383"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:55:08.319200"], ["updated_at", "2015-10-28 13:55:08.319200"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:55:08.324256"], ["updated_at", "2015-10-28 13:55:08.324256"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:55:08.328703"], ["updated_at", "2015-10-28 13:55:08.328703"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.332575"], ["updated_at", "2015-10-28 13:55:08.332575"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:55:08.334475"], ["updated_at", "2015-10-28 13:55:08.334475"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.337171"], ["updated_at", "2015-10-28 13:55:08.337171"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:55:08.347250"], ["updated_at", "2015-10-28 13:55:08.347250"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:55:08.351599"], ["updated_at", "2015-10-28 13:55:08.351599"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:55:08.358831"], ["updated_at", "2015-10-28 13:55:08.358831"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:55:08.365480"], ["updated_at", "2015-10-28 13:55:08.365480"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:55:08.368640"], ["updated_at", "2015-10-28 13:55:08.368640"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (1.0ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:56:24.140713"], ["updated_at", "2015-10-28 13:56:24.140713"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.160233"], ["updated_at", "2015-10-28 13:56:24.160233"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 13:56:24.183552"], ["updated_at", "2015-10-28 13:56:24.183552"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.186635"], ["updated_at", "2015-10-28 13:56:24.186635"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 17ms (Views: 8.9ms | ActiveRecord: 0.0ms) [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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:56:24.222730"], ["updated_at", "2015-10-28 13:56:24.222730"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.224655"], ["updated_at", "2015-10-28 13:56:24.224655"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:56:24.227714"], ["updated_at", "2015-10-28 13:56:24.227714"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.231598"], ["updated_at", "2015-10-28 13:56:24.231598"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (11.3ms) Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms) [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:56:24.260744"], ["updated_at", "2015-10-28 13:56:24.260744"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.263809"], ["updated_at", "2015-10-28 13:56:24.263809"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:56:24.268639"], ["updated_at", "2015-10-28 13:56:24.268639"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.273381"], ["updated_at", "2015-10-28 13:56:24.273381"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.4ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (6.1ms) Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.9ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:56:24.305031"], ["updated_at", "2015-10-28 13:56:24.305031"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.307301"], ["updated_at", "2015-10-28 13:56:24.307301"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:56:24.311770"], ["updated_at", "2015-10-28 13:56:24.311770"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.314417"], ["updated_at", "2015-10-28 13:56:24.314417"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (6.0ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.5ms) [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:56:24.334187"], ["updated_at", "2015-10-28 13:56:24.334187"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.336321"], ["updated_at", "2015-10-28 13:56:24.336321"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 13:56:24.338502"], ["updated_at", "2015-10-28 13:56:24.338502"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.339959"], ["updated_at", "2015-10-28 13:56:24.339959"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.3ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:56:24.507618"], ["updated_at", "2015-10-28 13:56:24.507618"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.509727"], ["updated_at", "2015-10-28 13:56:24.509727"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 13:56:24.512122"], ["updated_at", "2015-10-28 13:56:24.512122"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.513794"], ["updated_at", "2015-10-28 13:56:24.513794"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:56:24.522993"], ["updated_at", "2015-10-28 13:56:24.522993"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.525029"], ["updated_at", "2015-10-28 13:56:24.525029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:56:24.527363"], ["updated_at", "2015-10-28 13:56:24.527363"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.529137"], ["updated_at", "2015-10-28 13:56:24.529137"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 14.8ms [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:56:24.551173"], ["updated_at", "2015-10-28 13:56:24.551173"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.552941"], ["updated_at", "2015-10-28 13:56:24.552941"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 13:56:24.555281"], ["updated_at", "2015-10-28 13:56:24.555281"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.558007"], ["updated_at", "2015-10-28 13:56:24.558007"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.6ms [1m[36m (2.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:56:24.577510"], ["updated_at", "2015-10-28 13:56:24.577510"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.582835"], ["updated_at", "2015-10-28 13:56:24.582835"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:56:24.586474"], ["updated_at", "2015-10-28 13:56:24.586474"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.591329"], ["updated_at", "2015-10-28 13:56:24.591329"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 12.0ms [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:56:24.608226"], ["updated_at", "2015-10-28 13:56:24.608226"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.610794"], ["updated_at", "2015-10-28 13:56:24.610794"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 13:56:24.617697"], ["updated_at", "2015-10-28 13:56:24.617697"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:24.619930"], ["updated_at", "2015-10-28 13:56:24.619930"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.8ms [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.636986"], ["updated_at", "2015-10-28 13:56:24.636986"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:56:24.641040"], ["updated_at", "2015-10-28 13:56:24.641040"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.644445"], ["updated_at", "2015-10-28 13:56:24.644445"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:56:24.647114"], ["updated_at", "2015-10-28 13:56:24.647114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.650556"], ["updated_at", "2015-10-28 13:56:24.650556"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:56:24.652222"], ["updated_at", "2015-10-28 13:56:24.652222"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.654302"], ["updated_at", "2015-10-28 13:56:24.654302"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.657673"], ["updated_at", "2015-10-28 13:56:24.657673"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:56:24.659562"], ["updated_at", "2015-10-28 13:56:24.659562"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.661964"], ["updated_at", "2015-10-28 13:56:24.661964"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.666780"], ["updated_at", "2015-10-28 13:56:24.666780"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:56:24.668430"], ["updated_at", "2015-10-28 13:56:24.668430"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.672486"], ["updated_at", "2015-10-28 13:56:24.672486"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.677376"], ["updated_at", "2015-10-28 13:56:24.677376"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:56:24.679662"], ["updated_at", "2015-10-28 13:56:24.679662"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.685772"], ["updated_at", "2015-10-28 13:56:24.685772"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:56:24.693080"], ["updated_at", "2015-10-28 13:56:24.693080"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.700590"], ["updated_at", "2015-10-28 13:56:24.700590"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:56:24.702240"], ["updated_at", "2015-10-28 13:56:24.702240"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.705225"], ["updated_at", "2015-10-28 13:56:24.705225"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:56:24.711263"], ["updated_at", "2015-10-28 13:56:24.711263"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 20.5ms Sent mail to user16@sleede.com (7.8ms) Date: Wed, 28 Oct 2015 14:56:24 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d408b4c25_16eae3fe63d0601e022596@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.747371"], ["updated_at", "2015-10-28 13:56:24.747371"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:56:24.751643"], ["updated_at", "2015-10-28 13:56:24.751643"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.757998"], ["updated_at", "2015-10-28 13:56:24.757998"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:56:24.763606"], ["updated_at", "2015-10-28 13:56:24.763606"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7588ec9c-75ce-458f-8705-9c006b8ae86d) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] NotificationsMailer#send_mail_by: processed outbound mail in 5.0ms [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] Sent mail to user17@sleede.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] Date: Wed, 28 Oct 2015 14:56:24 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d408c2a04_16eae3fe63d0601e022662@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [7588ec9c-75ce-458f-8705-9c006b8ae86d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.92ms [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.804920"], ["updated_at", "2015-10-28 13:56:24.804920"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:56:24.807631"], ["updated_at", "2015-10-28 13:56:24.807631"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.810631"], ["updated_at", "2015-10-28 13:56:24.810631"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:56:24.813250"], ["updated_at", "2015-10-28 13:56:24.813250"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.815935"], ["updated_at", "2015-10-28 13:56:24.815935"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:56:24.821476"], ["updated_at", "2015-10-28 13:56:24.821476"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.828023"], ["updated_at", "2015-10-28 13:56:24.828023"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:56:24.832357"], ["updated_at", "2015-10-28 13:56:24.832357"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.835958"], ["updated_at", "2015-10-28 13:56:24.835958"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:56:24.839227"], ["updated_at", "2015-10-28 13:56:24.839227"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.843134"], ["updated_at", "2015-10-28 13:56:24.843134"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:56:24.851011"], ["updated_at", "2015-10-28 13:56:24.851011"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.858701"], ["updated_at", "2015-10-28 13:56:24.858701"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:56:24.860927"], ["updated_at", "2015-10-28 13:56:24.860927"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.866343"], ["updated_at", "2015-10-28 13:56:24.866343"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:56:24.869720"], ["updated_at", "2015-10-28 13:56:24.869720"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:24.873691"], ["updated_at", "2015-10-28 13:56:24.873691"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:56:24.878639"], ["updated_at", "2015-10-28 13:56:24.878639"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.886636"], ["updated_at", "2015-10-28 13:56:24.886636"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:56:24.891248"], ["updated_at", "2015-10-28 13:56:24.891248"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.895846"], ["updated_at", "2015-10-28 13:56:24.895846"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:56:24.909323"], ["updated_at", "2015-10-28 13:56:24.909323"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:24.920023"], ["updated_at", "2015-10-28 13:56:24.920023"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:56:24.926636"], ["updated_at", "2015-10-28 13:56:24.926636"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:24.930409"], ["updated_at", "2015-10-28 13:56:24.930409"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:56:24.933803"], ["updated_at", "2015-10-28 13:56:24.933803"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.8ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.5ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (2.6ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:56:52.952696"], ["updated_at", "2015-10-28 13:56:52.952696"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:52.974368"], ["updated_at", "2015-10-28 13:56:52.974368"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 13:56:52.990045"], ["updated_at", "2015-10-28 13:56:52.990045"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:52.997414"], ["updated_at", "2015-10-28 13:56:52.997414"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 13ms (Views: 6.8ms | ActiveRecord: 0.0ms) [1m[36m (8.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:56:53.040110"], ["updated_at", "2015-10-28 13:56:53.040110"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.042812"], ["updated_at", "2015-10-28 13:56:53.042812"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:56:53.047392"], ["updated_at", "2015-10-28 13:56:53.047392"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.052405"], ["updated_at", "2015-10-28 13:56:53.052405"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (14.5ms) Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.4ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:56:53.082596"], ["updated_at", "2015-10-28 13:56:53.082596"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.085859"], ["updated_at", "2015-10-28 13:56:53.085859"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:56:53.092264"], ["updated_at", "2015-10-28 13:56:53.092264"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.099764"], ["updated_at", "2015-10-28 13:56:53.099764"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.2ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.2ms) [1m[36m (1.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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:56:53.125454"], ["updated_at", "2015-10-28 13:56:53.125454"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.127429"], ["updated_at", "2015-10-28 13:56:53.127429"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:56:53.132759"], ["updated_at", "2015-10-28 13:56:53.132759"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.136586"], ["updated_at", "2015-10-28 13:56:53.136586"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.9ms) Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms) [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:56:53.162801"], ["updated_at", "2015-10-28 13:56:53.162801"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.165441"], ["updated_at", "2015-10-28 13:56:53.165441"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 13:56:53.172749"], ["updated_at", "2015-10-28 13:56:53.172749"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.180852"], ["updated_at", "2015-10-28 13:56:53.180852"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.3ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 7ms (ActiveRecord: 0.5ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:56:53.331628"], ["updated_at", "2015-10-28 13:56:53.331628"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.333583"], ["updated_at", "2015-10-28 13:56:53.333583"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 13:56:53.336002"], ["updated_at", "2015-10-28 13:56:53.336002"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.337640"], ["updated_at", "2015-10-28 13:56:53.337640"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:56:53.352618"], ["updated_at", "2015-10-28 13:56:53.352618"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.354727"], ["updated_at", "2015-10-28 13:56:53.354727"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:56:53.357322"], ["updated_at", "2015-10-28 13:56:53.357322"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.358863"], ["updated_at", "2015-10-28 13:56:53.358863"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 16.4ms [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:56:53.382021"], ["updated_at", "2015-10-28 13:56:53.382021"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.388247"], ["updated_at", "2015-10-28 13:56:53.388247"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 13:56:53.394567"], ["updated_at", "2015-10-28 13:56:53.394567"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.397594"], ["updated_at", "2015-10-28 13:56:53.397594"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.8ms [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:56:53.415815"], ["updated_at", "2015-10-28 13:56:53.415815"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.418687"], ["updated_at", "2015-10-28 13:56:53.418687"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:56:53.420787"], ["updated_at", "2015-10-28 13:56:53.420787"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.422807"], ["updated_at", "2015-10-28 13:56:53.422807"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 9.4ms [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:56:53.436649"], ["updated_at", "2015-10-28 13:56:53.436649"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.438714"], ["updated_at", "2015-10-28 13:56:53.438714"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 13:56:53.441120"], ["updated_at", "2015-10-28 13:56:53.441120"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.443021"], ["updated_at", "2015-10-28 13:56:53.443021"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.6ms [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.456817"], ["updated_at", "2015-10-28 13:56:53.456817"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:56:53.458510"], ["updated_at", "2015-10-28 13:56:53.458510"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.460997"], ["updated_at", "2015-10-28 13:56:53.460997"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:56:53.465164"], ["updated_at", "2015-10-28 13:56:53.465164"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.471504"], ["updated_at", "2015-10-28 13:56:53.471504"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:56:53.478254"], ["updated_at", "2015-10-28 13:56:53.478254"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.4ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.483300"], ["updated_at", "2015-10-28 13:56:53.483300"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.489281"], ["updated_at", "2015-10-28 13:56:53.489281"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:56:53.492705"], ["updated_at", "2015-10-28 13:56:53.492705"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.495014"], ["updated_at", "2015-10-28 13:56:53.495014"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:56:53.499891"], ["updated_at", "2015-10-28 13:56:53.499891"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.505209"], ["updated_at", "2015-10-28 13:56:53.505209"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:56:53.509764"], ["updated_at", "2015-10-28 13:56:53.509764"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (2.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.518817"], ["updated_at", "2015-10-28 13:56:53.518817"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:56:53.523030"], ["updated_at", "2015-10-28 13:56:53.523030"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.528678"], ["updated_at", "2015-10-28 13:56:53.528678"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:56:53.531267"], ["updated_at", "2015-10-28 13:56:53.531267"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.535917"], ["updated_at", "2015-10-28 13:56:53.535917"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:56:53.543300"], ["updated_at", "2015-10-28 13:56:53.543300"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.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.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.560857"], ["updated_at", "2015-10-28 13:56:53.560857"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:56:53.565812"], ["updated_at", "2015-10-28 13:56:53.565812"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.567866"], ["updated_at", "2015-10-28 13:56:53.567866"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:56:53.569242"], ["updated_at", "2015-10-28 13:56:53.569242"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.570371"], ["updated_at", "2015-10-28 13:56:53.570371"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_14' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_14"], ["created_at", "2015-10-28 13:56:53.574576"], ["updated_at", "2015-10-28 13:56:53.574576"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.609305"], ["updated_at", "2015-10-28 13:56:53.609305"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:56:53.611213"], ["updated_at", "2015-10-28 13:56:53.611213"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.614358"], ["updated_at", "2015-10-28 13:56:53.614358"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:56:53.619730"], ["updated_at", "2015-10-28 13:56:53.619730"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.621477"], ["updated_at", "2015-10-28 13:56:53.621477"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_15' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_15"], ["created_at", "2015-10-28 13:56:53.624584"], ["updated_at", "2015-10-28 13:56:53.624584"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.626695"], ["updated_at", "2015-10-28 13:56:53.626695"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.633226"], ["updated_at", "2015-10-28 13:56:53.633226"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:56:53.635305"], ["updated_at", "2015-10-28 13:56:53.635305"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.637393"], ["updated_at", "2015-10-28 13:56:53.637393"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:56:53.640795"], ["updated_at", "2015-10-28 13:56:53.640795"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.644539"], ["updated_at", "2015-10-28 13:56:53.644539"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_16' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_16"], ["created_at", "2015-10-28 13:56:53.648156"], ["updated_at", "2015-10-28 13:56:53.648156"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.650359"], ["updated_at", "2015-10-28 13:56:53.650359"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.5ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 16.2ms Sent mail to user21@sleede.com (5.5ms) Date: Wed, 28 Oct 2015 14:56:53 +0100 From: contact@sleede.com To: user21@sleede.com Message-ID: <5630d425a3d18_16eb53ff06d4601d4290cb@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser21
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.676788"], ["updated_at", "2015-10-28 13:56:53.676788"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:56:53.678748"], ["updated_at", "2015-10-28 13:56:53.678748"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.683410"], ["updated_at", "2015-10-28 13:56:53.683410"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:56:53.688095"], ["updated_at", "2015-10-28 13:56:53.688095"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.690008"], ["updated_at", "2015-10-28 13:56:53.690008"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_17' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_17"], ["created_at", "2015-10-28 13:56:53.695017"], ["updated_at", "2015-10-28 13:56:53.695017"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.698717"], ["updated_at", "2015-10-28 13:56:53.698717"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 13898432-ec90-42b1-b571-0f587bf8df48) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] NotificationsMailer#send_mail_by: processed outbound mail in 4.8ms [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] Sent mail to user23@sleede.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] Date: Wed, 28 Oct 2015 14:56:53 +0100 From: contact@sleede.com To: user23@sleede.com Message-ID: <5630d425aff0b_16eb53ff06d4601d42913f@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser23
message body
[ActiveJob] [ActionMailer::DeliveryJob] [13898432-ec90-42b1-b571-0f587bf8df48] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.28ms [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.728991"], ["updated_at", "2015-10-28 13:56:53.728991"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:56:53.733245"], ["updated_at", "2015-10-28 13:56:53.733245"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.742666"], ["updated_at", "2015-10-28 13:56:53.742666"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-28 13:56:53.745733"], ["updated_at", "2015-10-28 13:56:53.745733"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.747451"], ["updated_at", "2015-10-28 13:56:53.747451"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_18' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_18"], ["created_at", "2015-10-28 13:56:53.751203"], ["updated_at", "2015-10-28 13:56:53.751203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.754708"], ["updated_at", "2015-10-28 13:56:53.754708"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-28 13:56:53.760833"], ["updated_at", "2015-10-28 13:56:53.760833"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.767280"], ["updated_at", "2015-10-28 13:56:53.767280"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-28 13:56:53.777681"], ["updated_at", "2015-10-28 13:56:53.777681"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.779933"], ["updated_at", "2015-10-28 13:56:53.779933"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_19' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_19"], ["created_at", "2015-10-28 13:56:53.785570"], ["updated_at", "2015-10-28 13:56:53.785570"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.5ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.798381"], ["updated_at", "2015-10-28 13:56:53.798381"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-28 13:56:53.805841"], ["updated_at", "2015-10-28 13:56:53.805841"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.815497"], ["updated_at", "2015-10-28 13:56:53.815497"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-28 13:56:53.817490"], ["updated_at", "2015-10-28 13:56:53.817490"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.819203"], ["updated_at", "2015-10-28 13:56:53.819203"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_20' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_20"], ["created_at", "2015-10-28 13:56:53.825728"], ["updated_at", "2015-10-28 13:56:53.825728"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.830820"], ["updated_at", "2015-10-28 13:56:53.830820"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-28 13:56:53.834864"], ["updated_at", "2015-10-28 13:56:53.834864"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.8ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.839684"], ["updated_at", "2015-10-28 13:56:53.839684"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-28 13:56:53.842130"], ["updated_at", "2015-10-28 13:56:53.842130"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.843672"], ["updated_at", "2015-10-28 13:56:53.843672"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_21' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_21"], ["created_at", "2015-10-28 13:56:53.845819"], ["updated_at", "2015-10-28 13:56:53.845819"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.850441"], ["updated_at", "2015-10-28 13:56:53.850441"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:56:53.855093"], ["updated_at", "2015-10-28 13:56:53.855093"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-28 13:56:53.860514"], ["updated_at", "2015-10-28 13:56:53.860514"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:56:53.868026"], ["updated_at", "2015-10-28 13:56:53.868026"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-28 13:56:53.869568"], ["updated_at", "2015-10-28 13:56:53.869568"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:56:53.870736"], ["updated_at", "2015-10-28 13:56:53.870736"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_22' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_22"], ["created_at", "2015-10-28 13:56:53.872408"], ["updated_at", "2015-10-28 13:56:53.872408"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:56:53.874639"], ["updated_at", "2015-10-28 13:56:53.874639"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.6ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (1.1ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:57:31.264771"], ["updated_at", "2015-10-28 13:57:31.264771"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.276969"], ["updated_at", "2015-10-28 13:57:31.276969"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 13:57:31.297470"], ["updated_at", "2015-10-28 13:57:31.297470"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.304355"], ["updated_at", "2015-10-28 13:57:31.304355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 13ms (Views: 6.6ms | ActiveRecord: 0.0ms) [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:57:31.340196"], ["updated_at", "2015-10-28 13:57:31.340196"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.342365"], ["updated_at", "2015-10-28 13:57:31.342365"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:57:31.348686"], ["updated_at", "2015-10-28 13:57:31.348686"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.351664"], ["updated_at", "2015-10-28 13:57:31.351664"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.5ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (17.4ms) Completed 500 Internal Server Error in 20ms (ActiveRecord: 1.0ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:57:31.384611"], ["updated_at", "2015-10-28 13:57:31.384611"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.386725"], ["updated_at", "2015-10-28 13:57:31.386725"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:57:31.395359"], ["updated_at", "2015-10-28 13:57:31.395359"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.402101"], ["updated_at", "2015-10-28 13:57:31.402101"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.4ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.2ms) [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:57:31.426142"], ["updated_at", "2015-10-28 13:57:31.426142"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.430377"], ["updated_at", "2015-10-28 13:57:31.430377"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:57:31.432928"], ["updated_at", "2015-10-28 13:57:31.432928"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.435669"], ["updated_at", "2015-10-28 13:57:31.435669"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.7ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.4ms) [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:57:31.466590"], ["updated_at", "2015-10-28 13:57:31.466590"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.472299"], ["updated_at", "2015-10-28 13:57:31.472299"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 13:57:31.478670"], ["updated_at", "2015-10-28 13:57:31.478670"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.481672"], ["updated_at", "2015-10-28 13:57:31.481672"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:57:31.630068"], ["updated_at", "2015-10-28 13:57:31.630068"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.632088"], ["updated_at", "2015-10-28 13:57:31.632088"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 13:57:31.634487"], ["updated_at", "2015-10-28 13:57:31.634487"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.636083"], ["updated_at", "2015-10-28 13:57:31.636083"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:57:31.652666"], ["updated_at", "2015-10-28 13:57:31.652666"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.654776"], ["updated_at", "2015-10-28 13:57:31.654776"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:57:31.657158"], ["updated_at", "2015-10-28 13:57:31.657158"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.658728"], ["updated_at", "2015-10-28 13:57:31.658728"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 12.3ms [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:57:31.676341"], ["updated_at", "2015-10-28 13:57:31.676341"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.678336"], ["updated_at", "2015-10-28 13:57:31.678336"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 13:57:31.680441"], ["updated_at", "2015-10-28 13:57:31.680441"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.681968"], ["updated_at", "2015-10-28 13:57:31.681968"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 21.3ms [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:57:31.712604"], ["updated_at", "2015-10-28 13:57:31.712604"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.718972"], ["updated_at", "2015-10-28 13:57:31.718972"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:57:31.723939"], ["updated_at", "2015-10-28 13:57:31.723939"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.727531"], ["updated_at", "2015-10-28 13:57:31.727531"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 15.0ms [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:57:31.750149"], ["updated_at", "2015-10-28 13:57:31.750149"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.756067"], ["updated_at", "2015-10-28 13:57:31.756067"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 13:57:31.760229"], ["updated_at", "2015-10-28 13:57:31.760229"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:57:31.763076"], ["updated_at", "2015-10-28 13:57:31.763076"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 9.9ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.777593"], ["updated_at", "2015-10-28 13:57:31.777593"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:57:31.779584"], ["updated_at", "2015-10-28 13:57:31.779584"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.782152"], ["updated_at", "2015-10-28 13:57:31.782152"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:57:31.784982"], ["updated_at", "2015-10-28 13:57:31.784982"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.788394"], ["updated_at", "2015-10-28 13:57:31.788394"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:57:31.794117"], ["updated_at", "2015-10-28 13:57:31.794117"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.800551"], ["updated_at", "2015-10-28 13:57:31.800551"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.804902"], ["updated_at", "2015-10-28 13:57:31.804902"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:57:31.806620"], ["updated_at", "2015-10-28 13:57:31.806620"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.808957"], ["updated_at", "2015-10-28 13:57:31.808957"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.814109"], ["updated_at", "2015-10-28 13:57:31.814109"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:57:31.816486"], ["updated_at", "2015-10-28 13:57:31.816486"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.818885"], ["updated_at", "2015-10-28 13:57:31.818885"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.823325"], ["updated_at", "2015-10-28 13:57:31.823325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:57:31.825870"], ["updated_at", "2015-10-28 13:57:31.825870"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.831276"], ["updated_at", "2015-10-28 13:57:31.831276"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:57:31.834459"], ["updated_at", "2015-10-28 13:57:31.834459"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.840306"], ["updated_at", "2015-10-28 13:57:31.840306"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:57:31.844944"], ["updated_at", "2015-10-28 13:57:31.844944"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.851175"], ["updated_at", "2015-10-28 13:57:31.851175"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:57:31.853897"], ["updated_at", "2015-10-28 13:57:31.853897"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 12.9ms Sent mail to user16@sleede.com (4.2ms) Date: Wed, 28 Oct 2015 14:57:31 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d44bd4914_16ec13ffaf94601d4524d7@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.875490"], ["updated_at", "2015-10-28 13:57:31.875490"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:57:31.879106"], ["updated_at", "2015-10-28 13:57:31.879106"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.882803"], ["updated_at", "2015-10-28 13:57:31.882803"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:57:31.886195"], ["updated_at", "2015-10-28 13:57:31.886195"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7c0a7e83-ffed-4aad-b469-cedbe48ea18e) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] NotificationsMailer#send_mail_by: processed outbound mail in 4.7ms [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] Sent mail to user17@sleede.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] Date: Wed, 28 Oct 2015 14:57:31 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d44bde049_16ec13ffaf94601d45251a@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [7c0a7e83-ffed-4aad-b469-cedbe48ea18e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.61ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.913077"], ["updated_at", "2015-10-28 13:57:31.913077"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:57:31.914946"], ["updated_at", "2015-10-28 13:57:31.914946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.917365"], ["updated_at", "2015-10-28 13:57:31.917365"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:57:31.921003"], ["updated_at", "2015-10-28 13:57:31.921003"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.925513"], ["updated_at", "2015-10-28 13:57:31.925513"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:57:31.929187"], ["updated_at", "2015-10-28 13:57:31.929187"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.936804"], ["updated_at", "2015-10-28 13:57:31.936804"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:57:31.941255"], ["updated_at", "2015-10-28 13:57:31.941255"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.943806"], ["updated_at", "2015-10-28 13:57:31.943806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:57:31.946140"], ["updated_at", "2015-10-28 13:57:31.946140"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.949281"], ["updated_at", "2015-10-28 13:57:31.949281"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:57:31.954319"], ["updated_at", "2015-10-28 13:57:31.954319"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.959238"], ["updated_at", "2015-10-28 13:57:31.959238"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:57:31.961451"], ["updated_at", "2015-10-28 13:57:31.961451"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.964179"], ["updated_at", "2015-10-28 13:57:31.964179"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:57:31.966009"], ["updated_at", "2015-10-28 13:57:31.966009"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:57:31.971568"], ["updated_at", "2015-10-28 13:57:31.971568"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:57:31.974915"], ["updated_at", "2015-10-28 13:57:31.974915"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.980216"], ["updated_at", "2015-10-28 13:57:31.980216"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:57:31.982402"], ["updated_at", "2015-10-28 13:57:31.982402"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.984821"], ["updated_at", "2015-10-28 13:57:31.984821"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:57:31.990090"], ["updated_at", "2015-10-28 13:57:31.990090"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:57:31.994222"], ["updated_at", "2015-10-28 13:57:31.994222"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:57:31.996295"], ["updated_at", "2015-10-28 13:57:31.996295"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:57:31.998527"], ["updated_at", "2015-10-28 13:57:31.998527"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:57:32.000670"], ["updated_at", "2015-10-28 13:57:32.000670"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (10.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (2.3ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 13:58:14.016857"], ["updated_at", "2015-10-28 13:58:14.016857"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.037587"], ["updated_at", "2015-10-28 13:58:14.037587"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 13:58:14.051086"], ["updated_at", "2015-10-28 13:58:14.051086"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.053907"], ["updated_at", "2015-10-28 13:58:14.053907"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 13ms (Views: 6.5ms | ActiveRecord: 0.0ms) [1m[36m (8.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 13:58:14.095809"], ["updated_at", "2015-10-28 13:58:14.095809"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.098080"], ["updated_at", "2015-10-28 13:58:14.098080"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 13:58:14.104618"], ["updated_at", "2015-10-28 13:58:14.104618"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.108727"], ["updated_at", "2015-10-28 13:58:14.108727"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (10.7ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 13:58:14.133791"], ["updated_at", "2015-10-28 13:58:14.133791"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.137325"], ["updated_at", "2015-10-28 13:58:14.137325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 13:58:14.142513"], ["updated_at", "2015-10-28 13:58:14.142513"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.150365"], ["updated_at", "2015-10-28 13:58:14.150365"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.8ms) Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.4ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 13:58:14.179128"], ["updated_at", "2015-10-28 13:58:14.179128"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.180979"], ["updated_at", "2015-10-28 13:58:14.180979"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 13:58:14.186569"], ["updated_at", "2015-10-28 13:58:14.186569"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.190373"], ["updated_at", "2015-10-28 13:58:14.190373"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.7ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms) [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 13:58:14.209110"], ["updated_at", "2015-10-28 13:58:14.209110"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.216765"], ["updated_at", "2015-10-28 13:58:14.216765"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 13:58:14.223690"], ["updated_at", "2015-10-28 13:58:14.223690"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.229779"], ["updated_at", "2015-10-28 13:58:14.229779"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 13:58:14.360801"], ["updated_at", "2015-10-28 13:58:14.360801"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.362898"], ["updated_at", "2015-10-28 13:58:14.362898"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 13:58:14.365263"], ["updated_at", "2015-10-28 13:58:14.365263"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.366815"], ["updated_at", "2015-10-28 13:58:14.366815"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 13:58:14.383184"], ["updated_at", "2015-10-28 13:58:14.383184"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.385234"], ["updated_at", "2015-10-28 13:58:14.385234"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 13:58:14.387593"], ["updated_at", "2015-10-28 13:58:14.387593"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.389155"], ["updated_at", "2015-10-28 13:58:14.389155"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 13.0ms [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 13:58:14.407324"], ["updated_at", "2015-10-28 13:58:14.407324"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.409239"], ["updated_at", "2015-10-28 13:58:14.409239"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 13:58:14.411307"], ["updated_at", "2015-10-28 13:58:14.411307"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.412661"], ["updated_at", "2015-10-28 13:58:14.412661"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.2ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 13:58:14.426916"], ["updated_at", "2015-10-28 13:58:14.426916"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.428654"], ["updated_at", "2015-10-28 13:58:14.428654"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 13:58:14.430717"], ["updated_at", "2015-10-28 13:58:14.430717"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.432221"], ["updated_at", "2015-10-28 13:58:14.432221"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 11.9ms [1m[35m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 13:58:14.450062"], ["updated_at", "2015-10-28 13:58:14.450062"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.451907"], ["updated_at", "2015-10-28 13:58:14.451907"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 13:58:14.454224"], ["updated_at", "2015-10-28 13:58:14.454224"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 13:58:14.455958"], ["updated_at", "2015-10-28 13:58:14.455958"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 8.3ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.467898"], ["updated_at", "2015-10-28 13:58:14.467898"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 13:58:14.469593"], ["updated_at", "2015-10-28 13:58:14.469593"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.471951"], ["updated_at", "2015-10-28 13:58:14.471951"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types"[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:58:14.475035"], ["updated_at", "2015-10-28 13:58:14.475035"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.482668"], ["updated_at", "2015-10-28 13:58:14.482668"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 13:58:14.486133"], ["updated_at", "2015-10-28 13:58:14.486133"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.492468"], ["updated_at", "2015-10-28 13:58:14.492468"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" IS NULL LIMIT 1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.496757"], ["updated_at", "2015-10-28 13:58:14.496757"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 13:58:14.498561"], ["updated_at", "2015-10-28 13:58:14.498561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.500730"], ["updated_at", "2015-10-28 13:58:14.500730"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.509337"], ["updated_at", "2015-10-28 13:58:14.509337"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 13:58:14.513751"], ["updated_at", "2015-10-28 13:58:14.513751"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.517453"], ["updated_at", "2015-10-28 13:58:14.517453"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (2.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.527879"], ["updated_at", "2015-10-28 13:58:14.527879"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 13:58:14.530008"], ["updated_at", "2015-10-28 13:58:14.530008"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.533150"], ["updated_at", "2015-10-28 13:58:14.533150"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:58:14.535659"], ["updated_at", "2015-10-28 13:58:14.535659"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.544826"], ["updated_at", "2015-10-28 13:58:14.544826"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 13:58:14.547688"], ["updated_at", "2015-10-28 13:58:14.547688"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.550519"], ["updated_at", "2015-10-28 13:58:14.550519"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:58:14.553368"], ["updated_at", "2015-10-28 13:58:14.553368"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 15.7ms Sent mail to user16@sleede.com (4.7ms) Date: Wed, 28 Oct 2015 14:58:14 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d4768c257_16ec93fc7da0601d0564d3@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.578428"], ["updated_at", "2015-10-28 13:58:14.578428"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 13:58:14.580258"], ["updated_at", "2015-10-28 13:58:14.580258"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.582554"], ["updated_at", "2015-10-28 13:58:14.582554"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:58:14.584971"], ["updated_at", "2015-10-28 13:58:14.584971"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 943c9667-1156-4971-8ac6-954a19cb47c3) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] NotificationsMailer#send_mail_by: processed outbound mail in 4.8ms [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] Sent mail to user17@sleede.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] Date: Wed, 28 Oct 2015 14:58:14 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d47694733_16ec93fc7da0601d056577@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [943c9667-1156-4971-8ac6-954a19cb47c3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.56ms [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.616109"], ["updated_at", "2015-10-28 13:58:14.616109"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 13:58:14.619905"], ["updated_at", "2015-10-28 13:58:14.619905"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.622707"], ["updated_at", "2015-10-28 13:58:14.622707"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 13:58:14.624477"], ["updated_at", "2015-10-28 13:58:14.624477"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.626012"], ["updated_at", "2015-10-28 13:58:14.626012"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 13:58:14.627702"], ["updated_at", "2015-10-28 13:58:14.627702"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.631948"], ["updated_at", "2015-10-28 13:58:14.631948"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 13:58:14.633620"], ["updated_at", "2015-10-28 13:58:14.633620"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.635873"], ["updated_at", "2015-10-28 13:58:14.635873"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 13:58:14.637392"], ["updated_at", "2015-10-28 13:58:14.637392"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.639066"], ["updated_at", "2015-10-28 13:58:14.639066"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 13:58:14.641491"], ["updated_at", "2015-10-28 13:58:14.641491"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.650153"], ["updated_at", "2015-10-28 13:58:14.650153"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 13:58:14.652106"], ["updated_at", "2015-10-28 13:58:14.652106"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.655565"], ["updated_at", "2015-10-28 13:58:14.655565"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 13:58:14.659617"], ["updated_at", "2015-10-28 13:58:14.659617"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.661440"], ["updated_at", "2015-10-28 13:58:14.661440"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 13:58:14.663000"], ["updated_at", "2015-10-28 13:58:14.663000"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 13:58:14.665933"], ["updated_at", "2015-10-28 13:58:14.665933"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 13:58:14.667641"], ["updated_at", "2015-10-28 13:58:14.667641"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.669616"], ["updated_at", "2015-10-28 13:58:14.669616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:58:14.682951"], ["updated_at", "2015-10-28 13:58:14.682951"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 13:58:14.686931"], ["updated_at", "2015-10-28 13:58:14.686931"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 13:58:14.688591"], ["updated_at", "2015-10-28 13:58:14.688591"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 13:58:14.690987"], ["updated_at", "2015-10-28 13:58:14.690987"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types"[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 13:58:14.693670"], ["updated_at", "2015-10-28 13:58:14.693670"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.4ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.3ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (2.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:00:00.368788"], ["updated_at", "2015-10-28 14:00:00.368788"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.383681"], ["updated_at", "2015-10-28 14:00:00.383681"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 14:00:00.407171"], ["updated_at", "2015-10-28 14:00:00.407171"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.410116"], ["updated_at", "2015-10-28 14:00:00.410116"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 15ms (Views: 7.9ms | ActiveRecord: 0.0ms) [1m[36m (8.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:00:00.447053"], ["updated_at", "2015-10-28 14:00:00.447053"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:00.449761"], ["updated_at", "2015-10-28 14:00:00.449761"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 14:00:00.453702"], ["updated_at", "2015-10-28 14:00:00.453702"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.456720"], ["updated_at", "2015-10-28 14:00:00.456720"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (15.9ms) Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.4ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:00:00.487640"], ["updated_at", "2015-10-28 14:00:00.487640"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:00.490734"], ["updated_at", "2015-10-28 14:00:00.490734"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 14:00:00.496963"], ["updated_at", "2015-10-28 14:00:00.496963"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.499966"], ["updated_at", "2015-10-28 14:00:00.499966"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.6ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (10.5ms) Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.8ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:00:00.540935"], ["updated_at", "2015-10-28 14:00:00.540935"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:00.544174"], ["updated_at", "2015-10-28 14:00:00.544174"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 14:00:00.553206"], ["updated_at", "2015-10-28 14:00:00.553206"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.561952"], ["updated_at", "2015-10-28 14:00:00.561952"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (6.2ms) Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.4ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:00:00.594914"], ["updated_at", "2015-10-28 14:00:00.594914"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.598165"], ["updated_at", "2015-10-28 14:00:00.598165"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 14:00:00.611428"], ["updated_at", "2015-10-28 14:00:00.611428"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.613719"], ["updated_at", "2015-10-28 14:00:00.613719"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 7ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:00:00.788683"], ["updated_at", "2015-10-28 14:00:00.788683"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.791726"], ["updated_at", "2015-10-28 14:00:00.791726"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 14:00:00.794564"], ["updated_at", "2015-10-28 14:00:00.794564"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.796496"], ["updated_at", "2015-10-28 14:00:00.796496"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (10.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:00:00.817500"], ["updated_at", "2015-10-28 14:00:00.817500"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:00.819977"], ["updated_at", "2015-10-28 14:00:00.819977"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 14:00:00.831366"], ["updated_at", "2015-10-28 14:00:00.831366"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.833960"], ["updated_at", "2015-10-28 14:00:00.833960"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 20.9ms [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 (1.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:00:00.867673"], ["updated_at", "2015-10-28 14:00:00.867673"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.882421"], ["updated_at", "2015-10-28 14:00:00.882421"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 14:00:00.888116"], ["updated_at", "2015-10-28 14:00:00.888116"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.894040"], ["updated_at", "2015-10-28 14:00:00.894040"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 12.9ms [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:00:00.916555"], ["updated_at", "2015-10-28 14:00:00.916555"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:00.921810"], ["updated_at", "2015-10-28 14:00:00.921810"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 14:00:00.930638"], ["updated_at", "2015-10-28 14:00:00.930638"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.936629"], ["updated_at", "2015-10-28 14:00:00.936629"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 14.4ms [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:00:00.967657"], ["updated_at", "2015-10-28 14:00:00.967657"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:00.970093"], ["updated_at", "2015-10-28 14:00:00.970093"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 14:00:00.978117"], ["updated_at", "2015-10-28 14:00:00.978117"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:00.984730"], ["updated_at", "2015-10-28 14:00:00.984730"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 16.3ms [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.010787"], ["updated_at", "2015-10-28 14:00:01.010787"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:00:01.013091"], ["updated_at", "2015-10-28 14:00:01.013091"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.022158"], ["updated_at", "2015-10-28 14:00:01.022158"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types"[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:01.027292"], ["updated_at", "2015-10-28 14:00:01.027292"]] [1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.036296"], ["updated_at", "2015-10-28 14:00:01.036296"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:00:01.039561"], ["updated_at", "2015-10-28 14:00:01.039561"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.045168"], ["updated_at", "2015-10-28 14:00:01.045168"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.061811"], ["updated_at", "2015-10-28 14:00:01.061811"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:00:01.063813"], ["updated_at", "2015-10-28 14:00:01.063813"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.066878"], ["updated_at", "2015-10-28 14:00:01.066878"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.087806"], ["updated_at", "2015-10-28 14:00:01.087806"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:00:01.093615"], ["updated_at", "2015-10-28 14:00:01.093615"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.097510"], ["updated_at", "2015-10-28 14:00:01.097510"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.105520"], ["updated_at", "2015-10-28 14:00:01.105520"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:00:01.108183"], ["updated_at", "2015-10-28 14:00:01.108183"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.121311"], ["updated_at", "2015-10-28 14:00:01.121311"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:01.127753"], ["updated_at", "2015-10-28 14:00:01.127753"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.134101"], ["updated_at", "2015-10-28 14:00:01.134101"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:00:01.141956"], ["updated_at", "2015-10-28 14:00:01.141956"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.151171"], ["updated_at", "2015-10-28 14:00:01.151171"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:01.156773"], ["updated_at", "2015-10-28 14:00:01.156773"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 13.9ms Sent mail to user16@sleede.com (6.9ms) Date: Wed, 28 Oct 2015 15:00:01 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d4e12b324_16ee33fdaee0601e0752fb@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.183475"], ["updated_at", "2015-10-28 14:00:01.183475"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:00:01.185568"], ["updated_at", "2015-10-28 14:00:01.185568"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.187824"], ["updated_at", "2015-10-28 14:00:01.187824"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:01.198817"], ["updated_at", "2015-10-28 14:00:01.198817"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] Sent mail to user17@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] Date: Wed, 28 Oct 2015 15:00:01 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d4e137e81_16ee33fdaee0601e075368@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [7ed6cdaf-a9b4-47e8-8d37-7c91b08e42dd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.0ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.235123"], ["updated_at", "2015-10-28 14:00:01.235123"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:00:01.238967"], ["updated_at", "2015-10-28 14:00:01.238967"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.242870"], ["updated_at", "2015-10-28 14:00:01.242870"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:00:01.247409"], ["updated_at", "2015-10-28 14:00:01.247409"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.251590"], ["updated_at", "2015-10-28 14:00:01.251590"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 14:00:01.261819"], ["updated_at", "2015-10-28 14:00:01.261819"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.273270"], ["updated_at", "2015-10-28 14:00:01.273270"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:00:01.275630"], ["updated_at", "2015-10-28 14:00:01.275630"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.278174"], ["updated_at", "2015-10-28 14:00:01.278174"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:00:01.280178"], ["updated_at", "2015-10-28 14:00:01.280178"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.282423"], ["updated_at", "2015-10-28 14:00:01.282423"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_12"], ["created_at", "2015-10-28 14:00:01.286545"], ["updated_at", "2015-10-28 14:00:01.286545"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (1.0ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.4ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.297542"], ["updated_at", "2015-10-28 14:00:01.297542"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:00:01.304068"], ["updated_at", "2015-10-28 14:00:01.304068"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.306677"], ["updated_at", "2015-10-28 14:00:01.306677"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:00:01.308204"], ["updated_at", "2015-10-28 14:00:01.308204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.309460"], ["updated_at", "2015-10-28 14:00:01.309460"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 14:00:01.311011"], ["updated_at", "2015-10-28 14:00:01.311011"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:01.313918"], ["updated_at", "2015-10-28 14:00:01.313918"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:00:01.315517"], ["updated_at", "2015-10-28 14:00:01.315517"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (2.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.323523"], ["updated_at", "2015-10-28 14:00:01.323523"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:01.337451"], ["updated_at", "2015-10-28 14:00:01.337451"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:01.342228"], ["updated_at", "2015-10-28 14:00:01.342228"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:00:01.344237"], ["updated_at", "2015-10-28 14:00:01.344237"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:01.350060"], ["updated_at", "2015-10-28 14:00:01.350060"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types"[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:01.353480"], ["updated_at", "2015-10-28 14:00:01.353480"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.7ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.3ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:00:26.991839"], ["updated_at", "2015-10-28 14:00:26.991839"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.007981"], ["updated_at", "2015-10-28 14:00:27.007981"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 14:00:27.029229"], ["updated_at", "2015-10-28 14:00:27.029229"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.032092"], ["updated_at", "2015-10-28 14:00:27.032092"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.4ms) Completed 200 OK in 14ms (Views: 7.9ms | ActiveRecord: 0.0ms) [1m[36m (8.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:00:27.071078"], ["updated_at", "2015-10-28 14:00:27.071078"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.073219"], ["updated_at", "2015-10-28 14:00:27.073219"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 14:00:27.077869"], ["updated_at", "2015-10-28 14:00:27.077869"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.081332"], ["updated_at", "2015-10-28 14:00:27.081332"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.8ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (14.8ms) Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.4ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:00:27.108183"], ["updated_at", "2015-10-28 14:00:27.108183"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.111493"], ["updated_at", "2015-10-28 14:00:27.111493"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 14:00:27.114409"], ["updated_at", "2015-10-28 14:00:27.114409"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.117445"], ["updated_at", "2015-10-28 14:00:27.117445"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.6ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (11.6ms) Completed 500 Internal Server Error in 25ms (ActiveRecord: 1.0ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:00:27.157399"], ["updated_at", "2015-10-28 14:00:27.157399"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.161388"], ["updated_at", "2015-10-28 14:00:27.161388"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 14:00:27.165587"], ["updated_at", "2015-10-28 14:00:27.165587"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.175507"], ["updated_at", "2015-10-28 14:00:27.175507"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.6ms) Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:00:27.206841"], ["updated_at", "2015-10-28 14:00:27.206841"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.216703"], ["updated_at", "2015-10-28 14:00:27.216703"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 14:00:27.225774"], ["updated_at", "2015-10-28 14:00:27.225774"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.229778"], ["updated_at", "2015-10-28 14:00:27.229778"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:00:27.395235"], ["updated_at", "2015-10-28 14:00:27.395235"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.397278"], ["updated_at", "2015-10-28 14:00:27.397278"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 14:00:27.399377"], ["updated_at", "2015-10-28 14:00:27.399377"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.400687"], ["updated_at", "2015-10-28 14:00:27.400687"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:00:27.415418"], ["updated_at", "2015-10-28 14:00:27.415418"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.417408"], ["updated_at", "2015-10-28 14:00:27.417408"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 14:00:27.419477"], ["updated_at", "2015-10-28 14:00:27.419477"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.420841"], ["updated_at", "2015-10-28 14:00:27.420841"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 17.6ms [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:00:27.444911"], ["updated_at", "2015-10-28 14:00:27.444911"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.448816"], ["updated_at", "2015-10-28 14:00:27.448816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 14:00:27.451070"], ["updated_at", "2015-10-28 14:00:27.451070"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.452600"], ["updated_at", "2015-10-28 14:00:27.452600"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 14.3ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:00:27.472422"], ["updated_at", "2015-10-28 14:00:27.472422"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.478487"], ["updated_at", "2015-10-28 14:00:27.478487"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 14:00:27.488215"], ["updated_at", "2015-10-28 14:00:27.488215"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.491393"], ["updated_at", "2015-10-28 14:00:27.491393"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 11.0ms [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:00:27.511504"], ["updated_at", "2015-10-28 14:00:27.511504"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.515848"], ["updated_at", "2015-10-28 14:00:27.515848"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 14:00:27.519169"], ["updated_at", "2015-10-28 14:00:27.519169"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:00:27.521257"], ["updated_at", "2015-10-28 14:00:27.521257"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 15.3ms [1m[36m (1.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.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.543757"], ["updated_at", "2015-10-28 14:00:27.543757"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:00:27.547671"], ["updated_at", "2015-10-28 14:00:27.547671"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.549856"], ["updated_at", "2015-10-28 14:00:27.549856"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:27.552177"], ["updated_at", "2015-10-28 14:00:27.552177"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.556280"], ["updated_at", "2015-10-28 14:00:27.556280"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:00:27.560860"], ["updated_at", "2015-10-28 14:00:27.560860"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.567140"], ["updated_at", "2015-10-28 14:00:27.567140"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (3.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.577064"], ["updated_at", "2015-10-28 14:00:27.577064"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:00:27.584401"], ["updated_at", "2015-10-28 14:00:27.584401"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.591593"], ["updated_at", "2015-10-28 14:00:27.591593"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.596533"], ["updated_at", "2015-10-28 14:00:27.596533"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:00:27.598554"], ["updated_at", "2015-10-28 14:00:27.598554"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.600715"], ["updated_at", "2015-10-28 14:00:27.600715"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.605265"], ["updated_at", "2015-10-28 14:00:27.605265"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:00:27.608430"], ["updated_at", "2015-10-28 14:00:27.608430"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.616806"], ["updated_at", "2015-10-28 14:00:27.616806"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (1.6ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:27.627752"], ["updated_at", "2015-10-28 14:00:27.627752"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.631826"], ["updated_at", "2015-10-28 14:00:27.631826"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:00:27.635014"], ["updated_at", "2015-10-28 14:00:27.635014"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.637354"], ["updated_at", "2015-10-28 14:00:27.637354"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:27.639408"], ["updated_at", "2015-10-28 14:00:27.639408"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 20.1ms Sent mail to user16@sleede.com (9.9ms) Date: Wed, 28 Oct 2015 15:00:27 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d4fba35d9_16eed3fc5a18601e089476@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.675206"], ["updated_at", "2015-10-28 14:00:27.675206"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:00:27.681528"], ["updated_at", "2015-10-28 14:00:27.681528"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.691674"], ["updated_at", "2015-10-28 14:00:27.691674"]] [1m[35m (1.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:27.697624"], ["updated_at", "2015-10-28 14:00:27.697624"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6de9942c-48a6-4dce-86c3-e94fc260069b) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] NotificationsMailer#send_mail_by: processed outbound mail in 4.0ms [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] Sent mail to user17@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] Date: Wed, 28 Oct 2015 15:00:27 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d4fbb01d9_16eed3fc5a18601e08951e@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [6de9942c-48a6-4dce-86c3-e94fc260069b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.91ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.729044"], ["updated_at", "2015-10-28 14:00:27.729044"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:00:27.735686"], ["updated_at", "2015-10-28 14:00:27.735686"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.745762"], ["updated_at", "2015-10-28 14:00:27.745762"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:00:27.747282"], ["updated_at", "2015-10-28 14:00:27.747282"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.748447"], ["updated_at", "2015-10-28 14:00:27.748447"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 14:00:27.749877"], ["updated_at", "2015-10-28 14:00:27.749877"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.753095"], ["updated_at", "2015-10-28 14:00:27.753095"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:00:27.755042"], ["updated_at", "2015-10-28 14:00:27.755042"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.757610"], ["updated_at", "2015-10-28 14:00:27.757610"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:00:27.759527"], ["updated_at", "2015-10-28 14:00:27.759527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.761483"], ["updated_at", "2015-10-28 14:00:27.761483"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.7ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_12"], ["created_at", "2015-10-28 14:00:27.768904"], ["updated_at", "2015-10-28 14:00:27.768904"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.4ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.778242"], ["updated_at", "2015-10-28 14:00:27.778242"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:00:27.781069"], ["updated_at", "2015-10-28 14:00:27.781069"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.783488"], ["updated_at", "2015-10-28 14:00:27.783488"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:00:27.784949"], ["updated_at", "2015-10-28 14:00:27.784949"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:00:27.786404"], ["updated_at", "2015-10-28 14:00:27.786404"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 14:00:27.788111"], ["updated_at", "2015-10-28 14:00:27.788111"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.796514"], ["updated_at", "2015-10-28 14:00:27.796514"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:00:27.802794"], ["updated_at", "2015-10-28 14:00:27.802794"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.808772"], ["updated_at", "2015-10-28 14:00:27.808772"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:27.816075"], ["updated_at", "2015-10-28 14:00:27.816075"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:00:27.820091"], ["updated_at", "2015-10-28 14:00:27.820091"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:00:27.822450"], ["updated_at", "2015-10-28 14:00:27.822450"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:00:27.827535"], ["updated_at", "2015-10-28 14:00:27.827535"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:00:27.831359"], ["updated_at", "2015-10-28 14:00:27.831359"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.6ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.2ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:11:31.256186"], ["updated_at", "2015-10-28 14:11:31.256186"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.282509"], ["updated_at", "2015-10-28 14:11:31.282509"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_1' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_1"], ["created_at", "2015-10-28 14:11:31.301010"], ["updated_at", "2015-10-28 14:11:31.301010"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.304481"], ["updated_at", "2015-10-28 14:11:31.304481"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 9.9ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:11:31.342501"], ["updated_at", "2015-10-28 14:11:31.342501"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.344831"], ["updated_at", "2015-10-28 14:11:31.344831"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_2"], ["created_at", "2015-10-28 14:11:31.349051"], ["updated_at", "2015-10-28 14:11:31.349051"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.352838"], ["updated_at", "2015-10-28 14:11:31.352838"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (18.6ms) Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms) [1m[36m (2.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:11:31.387090"], ["updated_at", "2015-10-28 14:11:31.387090"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.389303"], ["updated_at", "2015-10-28 14:11:31.389303"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_3' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_3"], ["created_at", "2015-10-28 14:11:31.391841"], ["updated_at", "2015-10-28 14:11:31.391841"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.395476"], ["updated_at", "2015-10-28 14:11:31.395476"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.4ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/show.json.jbuilder (4.7ms) Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.5ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:11:31.429553"], ["updated_at", "2015-10-28 14:11:31.429553"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.433573"], ["updated_at", "2015-10-28 14:11:31.433573"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_4"], ["created_at", "2015-10-28 14:11:31.437905"], ["updated_at", "2015-10-28 14:11:31.437905"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.444313"], ["updated_at", "2015-10-28 14:11:31.444313"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (5.3ms) Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms) [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:11:31.468599"], ["updated_at", "2015-10-28 14:11:31.468599"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.472473"], ["updated_at", "2015-10-28 14:11:31.472473"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_5' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_5"], ["created_at", "2015-10-28 14:11:31.478509"], ["updated_at", "2015-10-28 14:11:31.478509"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.482609"], ["updated_at", "2015-10-28 14:11:31.482609"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.4ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:11:31.653244"], ["updated_at", "2015-10-28 14:11:31.653244"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.655362"], ["updated_at", "2015-10-28 14:11:31.655362"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_6' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_6"], ["created_at", "2015-10-28 14:11:31.658322"], ["updated_at", "2015-10-28 14:11:31.658322"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.660074"], ["updated_at", "2015-10-28 14:11:31.660074"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:11:31.670586"], ["updated_at", "2015-10-28 14:11:31.670586"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.672431"], ["updated_at", "2015-10-28 14:11:31.672431"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_7"], ["created_at", "2015-10-28 14:11:31.674465"], ["updated_at", "2015-10-28 14:11:31.674465"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.677893"], ["updated_at", "2015-10-28 14:11:31.677893"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 18.7ms [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:11:31.704640"], ["updated_at", "2015-10-28 14:11:31.704640"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.707079"], ["updated_at", "2015-10-28 14:11:31.707079"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_8' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_8"], ["created_at", "2015-10-28 14:11:31.709690"], ["updated_at", "2015-10-28 14:11:31.709690"]] [1m[36m (3.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.717613"], ["updated_at", "2015-10-28 14:11:31.717613"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 14.9ms [1m[36m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:11:31.742695"], ["updated_at", "2015-10-28 14:11:31.742695"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.744799"], ["updated_at", "2015-10-28 14:11:31.744799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_9' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_9"], ["created_at", "2015-10-28 14:11:31.747245"], ["updated_at", "2015-10-28 14:11:31.747245"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.749657"], ["updated_at", "2015-10-28 14:11:31.749657"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 9.9ms [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:11:31.766807"], ["updated_at", "2015-10-28 14:11:31.766807"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.770308"], ["updated_at", "2015-10-28 14:11:31.770308"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_10' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_10"], ["created_at", "2015-10-28 14:11:31.772307"], ["updated_at", "2015-10-28 14:11:31.772307"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:11:31.773569"], ["updated_at", "2015-10-28 14:11:31.773569"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 17.4ms [1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.796200"], ["updated_at", "2015-10-28 14:11:31.796200"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:11:31.800443"], ["updated_at", "2015-10-28 14:11:31.800443"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.806753"], ["updated_at", "2015-10-28 14:11:31.806753"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:11:31.811834"], ["updated_at", "2015-10-28 14:11:31.811834"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.819483"], ["updated_at", "2015-10-28 14:11:31.819483"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:11:31.822847"], ["updated_at", "2015-10-28 14:11:31.822847"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.824950"], ["updated_at", "2015-10-28 14:11:31.824950"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.837339"], ["updated_at", "2015-10-28 14:11:31.837339"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:11:31.839386"], ["updated_at", "2015-10-28 14:11:31.839386"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.847370"], ["updated_at", "2015-10-28 14:11:31.847370"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (2.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.856915"], ["updated_at", "2015-10-28 14:11:31.856915"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:11:31.861108"], ["updated_at", "2015-10-28 14:11:31.861108"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.863587"], ["updated_at", "2015-10-28 14:11:31.863587"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.876601"], ["updated_at", "2015-10-28 14:11:31.876601"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:11:31.882893"], ["updated_at", "2015-10-28 14:11:31.882893"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.886297"], ["updated_at", "2015-10-28 14:11:31.886297"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:11:31.893560"], ["updated_at", "2015-10-28 14:11:31.893560"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.8ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.901827"], ["updated_at", "2015-10-28 14:11:31.901827"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:11:31.904270"], ["updated_at", "2015-10-28 14:11:31.904270"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.906652"], ["updated_at", "2015-10-28 14:11:31.906652"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.4ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:11:31.911313"], ["updated_at", "2015-10-28 14:11:31.911313"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (2.2ms) [1m[35mSQL (0.3ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 15.1ms Sent mail to user16@sleede.com (11.4ms) Date: Wed, 28 Oct 2015 15:11:31 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d793e5791_16f743ffcca0601d83844f@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:31.947341"], ["updated_at", "2015-10-28 14:11:31.947341"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:11:31.949379"], ["updated_at", "2015-10-28 14:11:31.949379"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:31.954488"], ["updated_at", "2015-10-28 14:11:31.954488"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:11:31.957978"], ["updated_at", "2015-10-28 14:11:31.957978"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3092acc5-e1e0-491d-ab8d-f972f73bac5d) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] NotificationsMailer#send_mail_by: processed outbound mail in 4.6ms [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] Sent mail to user17@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] Date: Wed, 28 Oct 2015 15:11:31 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d793f2730_16f743ffcca0601d838593@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [3092acc5-e1e0-491d-ab8d-f972f73bac5d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.31ms [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:31.996143"], ["updated_at", "2015-10-28 14:11:31.996143"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:11:31.998823"], ["updated_at", "2015-10-28 14:11:31.998823"]] [1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:32.012012"], ["updated_at", "2015-10-28 14:11:32.012012"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:11:32.016129"], ["updated_at", "2015-10-28 14:11:32.016129"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:32.019994"], ["updated_at", "2015-10-28 14:11:32.019994"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_11' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_11"], ["created_at", "2015-10-28 14:11:32.023094"], ["updated_at", "2015-10-28 14:11:32.023094"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:32.028762"], ["updated_at", "2015-10-28 14:11:32.028762"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:11:32.032192"], ["updated_at", "2015-10-28 14:11:32.032192"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:32.039568"], ["updated_at", "2015-10-28 14:11:32.039568"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:11:32.044457"], ["updated_at", "2015-10-28 14:11:32.044457"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:32.046776"], ["updated_at", "2015-10-28 14:11:32.046776"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_12' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message_12"], ["created_at", "2015-10-28 14:11:32.049152"], ["updated_at", "2015-10-28 14:11:32.049152"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.9ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:32.062685"], ["updated_at", "2015-10-28 14:11:32.062685"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:11:32.067855"], ["updated_at", "2015-10-28 14:11:32.067855"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:32.075538"], ["updated_at", "2015-10-28 14:11:32.075538"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:11:32.078587"], ["updated_at", "2015-10-28 14:11:32.078587"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:11:32.080206"], ["updated_at", "2015-10-28 14:11:32.080206"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message_13' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message_13"], ["created_at", "2015-10-28 14:11:32.084553"], ["updated_at", "2015-10-28 14:11:32.084553"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:32.093515"], ["updated_at", "2015-10-28 14:11:32.093515"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:11:32.096527"], ["updated_at", "2015-10-28 14:11:32.096527"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:32.103917"], ["updated_at", "2015-10-28 14:11:32.103917"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:11:32.115044"], ["updated_at", "2015-10-28 14:11:32.115044"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:11:32.126302"], ["updated_at", "2015-10-28 14:11:32.126302"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:11:32.132414"], ["updated_at", "2015-10-28 14:11:32.132414"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:11:32.137526"], ["updated_at", "2015-10-28 14:11:32.137526"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:11:32.144570"], ["updated_at", "2015-10-28 14:11:32.144570"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.4ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (2.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:12:36.849634"], ["updated_at", "2015-10-28 14:12:36.849634"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:36.868894"], ["updated_at", "2015-10-28 14:12:36.868894"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:12:36.899324"], ["updated_at", "2015-10-28 14:12:36.899324"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:36.901535"], ["updated_at", "2015-10-28 14:12:36.901535"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:12:36.912144"], ["updated_at", "2015-10-28 14:12:36.912144"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:36.913955"], ["updated_at", "2015-10-28 14:12:36.913955"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:12:36.925047"], ["updated_at", "2015-10-28 14:12:36.925047"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:36.926991"], ["updated_at", "2015-10-28 14:12:36.926991"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:12:36.935524"], ["updated_at", "2015-10-28 14:12:36.935524"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:36.942955"], ["updated_at", "2015-10-28 14:12:36.942955"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:12:37.112199"], ["updated_at", "2015-10-28 14:12:37.112199"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.114289"], ["updated_at", "2015-10-28 14:12:37.114289"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:12:37.121255"], ["updated_at", "2015-10-28 14:12:37.121255"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.125935"], ["updated_at", "2015-10-28 14:12:37.125935"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:12:37.134920"], ["updated_at", "2015-10-28 14:12:37.134920"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.139206"], ["updated_at", "2015-10-28 14:12:37.139206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:12:37.146256"], ["updated_at", "2015-10-28 14:12:37.146256"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.148031"], ["updated_at", "2015-10-28 14:12:37.148031"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:12:37.158106"], ["updated_at", "2015-10-28 14:12:37.158106"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.161920"], ["updated_at", "2015-10-28 14:12:37.161920"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.169193"], ["updated_at", "2015-10-28 14:12:37.169193"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:12:37.174160"], ["updated_at", "2015-10-28 14:12:37.174160"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.195161"], ["updated_at", "2015-10-28 14:12:37.195161"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:12:37.202419"], ["updated_at", "2015-10-28 14:12:37.202419"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.207291"], ["updated_at", "2015-10-28 14:12:37.207291"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:12:37.211044"], ["updated_at", "2015-10-28 14:12:37.211044"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.216157"], ["updated_at", "2015-10-28 14:12:37.216157"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.232621"], ["updated_at", "2015-10-28 14:12:37.232621"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:12:37.239826"], ["updated_at", "2015-10-28 14:12:37.239826"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.244663"], ["updated_at", "2015-10-28 14:12:37.244663"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.253581"], ["updated_at", "2015-10-28 14:12:37.253581"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:12:37.256409"], ["updated_at", "2015-10-28 14:12:37.256409"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.262852"], ["updated_at", "2015-10-28 14:12:37.262852"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.267858"], ["updated_at", "2015-10-28 14:12:37.267858"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:12:37.270506"], ["updated_at", "2015-10-28 14:12:37.270506"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.272731"], ["updated_at", "2015-10-28 14:12:37.272731"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:12:37.274422"], ["updated_at", "2015-10-28 14:12:37.274422"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.281540"], ["updated_at", "2015-10-28 14:12:37.281540"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:12:37.283074"], ["updated_at", "2015-10-28 14:12:37.283074"]] [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.293450"], ["updated_at", "2015-10-28 14:12:37.293450"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:12:37.300300"], ["updated_at", "2015-10-28 14:12:37.300300"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.8ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 21.3ms Sent mail to user16@sleede.com (6.7ms) Date: Wed, 28 Oct 2015 15:12:37 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d7d550283_16f823fe6918601d4678dc@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.334155"], ["updated_at", "2015-10-28 14:12:37.334155"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:12:37.335830"], ["updated_at", "2015-10-28 14:12:37.335830"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.338655"], ["updated_at", "2015-10-28 14:12:37.338655"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:12:37.343457"], ["updated_at", "2015-10-28 14:12:37.343457"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2d8e294f-6f45-4086-a85a-80d3c9fcc60c) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] NotificationsMailer#send_mail_by: processed outbound mail in 5.5ms [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] Sent mail to user17@sleede.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] Date: Wed, 28 Oct 2015 15:12:37 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d7d55b0be_16f823fe6918601d46791d@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [2d8e294f-6f45-4086-a85a-80d3c9fcc60c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.33ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.378727"], ["updated_at", "2015-10-28 14:12:37.378727"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:12:37.380371"], ["updated_at", "2015-10-28 14:12:37.380371"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.383187"], ["updated_at", "2015-10-28 14:12:37.383187"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:12:37.387131"], ["updated_at", "2015-10-28 14:12:37.387131"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.391742"], ["updated_at", "2015-10-28 14:12:37.391742"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.401363"], ["updated_at", "2015-10-28 14:12:37.401363"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:12:37.404009"], ["updated_at", "2015-10-28 14:12:37.404009"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.409271"], ["updated_at", "2015-10-28 14:12:37.409271"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:12:37.412067"], ["updated_at", "2015-10-28 14:12:37.412067"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.413392"], ["updated_at", "2015-10-28 14:12:37.413392"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.416764"], ["updated_at", "2015-10-28 14:12:37.416764"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:12:37.419820"], ["updated_at", "2015-10-28 14:12:37.419820"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.422090"], ["updated_at", "2015-10-28 14:12:37.422090"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:12:37.423439"], ["updated_at", "2015-10-28 14:12:37.423439"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:12:37.424647"], ["updated_at", "2015-10-28 14:12:37.424647"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.431767"], ["updated_at", "2015-10-28 14:12:37.431767"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:12:37.433564"], ["updated_at", "2015-10-28 14:12:37.433564"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.436687"], ["updated_at", "2015-10-28 14:12:37.436687"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:12:37.456550"], ["updated_at", "2015-10-28 14:12:37.456550"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:12:37.462234"], ["updated_at", "2015-10-28 14:12:37.462234"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:12:37.463950"], ["updated_at", "2015-10-28 14:12:37.463950"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:12:37.467003"], ["updated_at", "2015-10-28 14:12:37.467003"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:12:37.471271"], ["updated_at", "2015-10-28 14:12:37.471271"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.9ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:13:49.280884"], ["updated_at", "2015-10-28 14:13:49.280884"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.298168"], ["updated_at", "2015-10-28 14:13:49.298168"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.314059"], ["updated_at", "2015-10-28 14:13:49.314059"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.318943"], ["updated_at", "2015-10-28 14:13:49.318943"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 16ms (Views: 9.1ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:13:49.363837"], ["updated_at", "2015-10-28 14:13:49.363837"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.366201"], ["updated_at", "2015-10-28 14:13:49.366201"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.372321"], ["updated_at", "2015-10-28 14:13:49.372321"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.374828"], ["updated_at", "2015-10-28 14:13:49.374828"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered api/notifications/index.json.jbuilder (17.2ms) Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:13:49.406124"], ["updated_at", "2015-10-28 14:13:49.406124"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.408173"], ["updated_at", "2015-10-28 14:13:49.408173"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.410991"], ["updated_at", "2015-10-28 14:13:49.410991"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.412381"], ["updated_at", "2015-10-28 14:13:49.412381"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.3ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered api/notifications/show.json.jbuilder (5.6ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.6ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:13:49.436698"], ["updated_at", "2015-10-28 14:13:49.436698"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.438510"], ["updated_at", "2015-10-28 14:13:49.438510"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.443271"], ["updated_at", "2015-10-28 14:13:49.443271"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.448193"], ["updated_at", "2015-10-28 14:13:49.448193"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (3.7ms) Completed 200 OK in 11ms (Views: 4.0ms | ActiveRecord: 0.6ms) [1m[35m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:13:49.471956"], ["updated_at", "2015-10-28 14:13:49.471956"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.474017"], ["updated_at", "2015-10-28 14:13:49.474017"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.476700"], ["updated_at", "2015-10-28 14:13:49.476700"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.478188"], ["updated_at", "2015-10-28 14:13:49.478188"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.4ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.6ms) [1m[35mNotifyWith::Notification Load (0.3ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:13:49.619170"], ["updated_at", "2015-10-28 14:13:49.619170"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.621197"], ["updated_at", "2015-10-28 14:13:49.621197"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.623793"], ["updated_at", "2015-10-28 14:13:49.623793"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.625460"], ["updated_at", "2015-10-28 14:13:49.625460"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (9.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:13:49.640981"], ["updated_at", "2015-10-28 14:13:49.640981"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.643186"], ["updated_at", "2015-10-28 14:13:49.643186"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.645764"], ["updated_at", "2015-10-28 14:13:49.645764"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.647366"], ["updated_at", "2015-10-28 14:13:49.647366"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.8ms Sent mail to user7@sleede.com (4.2ms) Date: Wed, 28 Oct 2015 15:13:49 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630d81da3861_16f933fdb048601e0644a5@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:13:49.675933"], ["updated_at", "2015-10-28 14:13:49.675933"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.678717"], ["updated_at", "2015-10-28 14:13:49.678717"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.681671"], ["updated_at", "2015-10-28 14:13:49.681671"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.684054"], ["updated_at", "2015-10-28 14:13:49.684054"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user8@sleede.com (2.3ms) Date: Wed, 28 Oct 2015 15:13:49 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630d81da7f1e_16f933fdb048601e06451c@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:13:49.696553"], ["updated_at", "2015-10-28 14:13:49.696553"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.702860"], ["updated_at", "2015-10-28 14:13:49.702860"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.706899"], ["updated_at", "2015-10-28 14:13:49.706899"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.709511"], ["updated_at", "2015-10-28 14:13:49.709511"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.6ms Sent mail to user9@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 15:13:49 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630d81daee34_16f933fdb048601e064658@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:13:49.720157"], ["updated_at", "2015-10-28 14:13:49.720157"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.723847"], ["updated_at", "2015-10-28 14:13:49.723847"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.726463"], ["updated_at", "2015-10-28 14:13:49.726463"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:13:49.730242"], ["updated_at", "2015-10-28 14:13:49.730242"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.4ms Sent mail to user10@sleede.com (6.0ms) Date: Wed, 28 Oct 2015 15:13:49 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630d81db41aa_16f933fdb048601e0647a9@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.747285"], ["updated_at", "2015-10-28 14:13:49.747285"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:13:49.750471"], ["updated_at", "2015-10-28 14:13:49.750471"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.756232"], ["updated_at", "2015-10-28 14:13:49.756232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:13:49.761025"], ["updated_at", "2015-10-28 14:13:49.761025"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.765844"], ["updated_at", "2015-10-28 14:13:49.765844"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:13:49.770824"], ["updated_at", "2015-10-28 14:13:49.770824"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.777741"], ["updated_at", "2015-10-28 14:13:49.777741"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.794499"], ["updated_at", "2015-10-28 14:13:49.794499"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:13:49.796610"], ["updated_at", "2015-10-28 14:13:49.796610"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.799011"], ["updated_at", "2015-10-28 14:13:49.799011"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.806036"], ["updated_at", "2015-10-28 14:13:49.806036"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:13:49.810560"], ["updated_at", "2015-10-28 14:13:49.810560"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.815636"], ["updated_at", "2015-10-28 14:13:49.815636"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.823457"], ["updated_at", "2015-10-28 14:13:49.823457"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:13:49.825348"], ["updated_at", "2015-10-28 14:13:49.825348"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.827662"], ["updated_at", "2015-10-28 14:13:49.827662"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:13:49.830088"], ["updated_at", "2015-10-28 14:13:49.830088"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.833566"], ["updated_at", "2015-10-28 14:13:49.833566"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:13:49.836133"], ["updated_at", "2015-10-28 14:13:49.836133"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.844337"], ["updated_at", "2015-10-28 14:13:49.844337"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:13:49.849554"], ["updated_at", "2015-10-28 14:13:49.849554"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user16@sleede.com (2.0ms) Date: Wed, 28 Oct 2015 15:13:49 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d81dd0624_16f933fdb048601e064897@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.860204"], ["updated_at", "2015-10-28 14:13:49.860204"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:13:49.866276"], ["updated_at", "2015-10-28 14:13:49.866276"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.870236"], ["updated_at", "2015-10-28 14:13:49.870236"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:13:49.874554"], ["updated_at", "2015-10-28 14:13:49.874554"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c697bc4d-14e8-40be-b024-8dae7cd9a78f) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] NotificationsMailer#send_mail_by: processed outbound mail in 5.9ms [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] Sent mail to user17@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] Date: Wed, 28 Oct 2015 15:13:49 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d81ddb5b6_16f933fdb048601e064914@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [c697bc4d-14e8-40be-b024-8dae7cd9a78f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.77ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.904710"], ["updated_at", "2015-10-28 14:13:49.904710"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:13:49.909516"], ["updated_at", "2015-10-28 14:13:49.909516"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.915876"], ["updated_at", "2015-10-28 14:13:49.915876"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:13:49.920296"], ["updated_at", "2015-10-28 14:13:49.920296"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.923205"], ["updated_at", "2015-10-28 14:13:49.923205"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.933066"], ["updated_at", "2015-10-28 14:13:49.933066"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:13:49.935068"], ["updated_at", "2015-10-28 14:13:49.935068"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.937704"], ["updated_at", "2015-10-28 14:13:49.937704"]] [1m[36m (1.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:13:49.950011"], ["updated_at", "2015-10-28 14:13:49.950011"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.957408"], ["updated_at", "2015-10-28 14:13:49.957408"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:13:49.967226"], ["updated_at", "2015-10-28 14:13:49.967226"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:13:49.969841"], ["updated_at", "2015-10-28 14:13:49.969841"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.972283"], ["updated_at", "2015-10-28 14:13:49.972283"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:13:49.976604"], ["updated_at", "2015-10-28 14:13:49.976604"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.978089"], ["updated_at", "2015-10-28 14:13:49.978089"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:49.983585"], ["updated_at", "2015-10-28 14:13:49.983585"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:13:49.988073"], ["updated_at", "2015-10-28 14:13:49.988073"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:49.990699"], ["updated_at", "2015-10-28 14:13:49.990699"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:13:49.999735"], ["updated_at", "2015-10-28 14:13:49.999735"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:13:50.013485"], ["updated_at", "2015-10-28 14:13:50.013485"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:13:50.019638"], ["updated_at", "2015-10-28 14:13:50.019638"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:13:50.025761"], ["updated_at", "2015-10-28 14:13:50.025761"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:13:50.029095"], ["updated_at", "2015-10-28 14:13:50.029095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.5ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (3.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.7ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.1ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (3.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:16:05.079844"], ["updated_at", "2015-10-28 14:16:05.079844"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.092179"], ["updated_at", "2015-10-28 14:16:05.092179"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.122012"], ["updated_at", "2015-10-28 14:16:05.122012"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.125972"], ["updated_at", "2015-10-28 14:16:05.125972"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 13ms (Views: 6.5ms | ActiveRecord: 0.0ms) [1m[35m (8.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:16:05.162880"], ["updated_at", "2015-10-28 14:16:05.162880"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.165185"], ["updated_at", "2015-10-28 14:16:05.165185"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.168193"], ["updated_at", "2015-10-28 14:16:05.168193"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.169851"], ["updated_at", "2015-10-28 14:16:05.169851"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered api/notifications/index.json.jbuilder (12.2ms) Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.4ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:16:05.191424"], ["updated_at", "2015-10-28 14:16:05.191424"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.193736"], ["updated_at", "2015-10-28 14:16:05.193736"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.200478"], ["updated_at", "2015-10-28 14:16:05.200478"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.202293"], ["updated_at", "2015-10-28 14:16:05.202293"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered api/notifications/show.json.jbuilder (8.4ms) Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.5ms) [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:16:05.227760"], ["updated_at", "2015-10-28 14:16:05.227760"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.230186"], ["updated_at", "2015-10-28 14:16:05.230186"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.234802"], ["updated_at", "2015-10-28 14:16:05.234802"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.236481"], ["updated_at", "2015-10-28 14:16:05.236481"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (3.7ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:16:05.251340"], ["updated_at", "2015-10-28 14:16:05.251340"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.254294"], ["updated_at", "2015-10-28 14:16:05.254294"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.257379"], ["updated_at", "2015-10-28 14:16:05.257379"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.261354"], ["updated_at", "2015-10-28 14:16:05.261354"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:16:05.415137"], ["updated_at", "2015-10-28 14:16:05.415137"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.417206"], ["updated_at", "2015-10-28 14:16:05.417206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.419843"], ["updated_at", "2015-10-28 14:16:05.419843"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.421526"], ["updated_at", "2015-10-28 14:16:05.421526"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:16:05.436457"], ["updated_at", "2015-10-28 14:16:05.436457"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.438567"], ["updated_at", "2015-10-28 14:16:05.438567"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.441285"], ["updated_at", "2015-10-28 14:16:05.441285"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.442911"], ["updated_at", "2015-10-28 14:16:05.442911"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.2ms Sent mail to user7@sleede.com (6.5ms) Date: Wed, 28 Oct 2015 15:16:05 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630d8a5724c6_16fb33fd9520601d847a1@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:16:05.476003"], ["updated_at", "2015-10-28 14:16:05.476003"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.478775"], ["updated_at", "2015-10-28 14:16:05.478775"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.485920"], ["updated_at", "2015-10-28 14:16:05.485920"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.492912"], ["updated_at", "2015-10-28 14:16:05.492912"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 7.1ms Sent mail to user8@sleede.com (2.3ms) Date: Wed, 28 Oct 2015 15:16:05 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630d8a57b1bd_16fb33fd9520601d848da@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:16:05.509397"], ["updated_at", "2015-10-28 14:16:05.509397"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.512426"], ["updated_at", "2015-10-28 14:16:05.512426"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.516527"], ["updated_at", "2015-10-28 14:16:05.516527"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.520343"], ["updated_at", "2015-10-28 14:16:05.520343"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms Sent mail to user9@sleede.com (4.2ms) Date: Wed, 28 Oct 2015 15:16:05 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630d8a5816e7_16fb33fd9520601d849aa@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (3.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:16:05.538311"], ["updated_at", "2015-10-28 14:16:05.538311"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.542564"], ["updated_at", "2015-10-28 14:16:05.542564"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.548915"], ["updated_at", "2015-10-28 14:16:05.548915"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:16:05.556476"], ["updated_at", "2015-10-28 14:16:05.556476"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 5.5ms Sent mail to user10@sleede.com (3.3ms) Date: Wed, 28 Oct 2015 15:16:05 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630d8a58aabc_16fb33fd9520601d8505d@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.573632"], ["updated_at", "2015-10-28 14:16:05.573632"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:16:05.576470"], ["updated_at", "2015-10-28 14:16:05.576470"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.583657"], ["updated_at", "2015-10-28 14:16:05.583657"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:16:05.586534"], ["updated_at", "2015-10-28 14:16:05.586534"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.589493"], ["updated_at", "2015-10-28 14:16:05.589493"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:16:05.593147"], ["updated_at", "2015-10-28 14:16:05.593147"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.7ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.599150"], ["updated_at", "2015-10-28 14:16:05.599150"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.608418"], ["updated_at", "2015-10-28 14:16:05.608418"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:16:05.611849"], ["updated_at", "2015-10-28 14:16:05.611849"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.619461"], ["updated_at", "2015-10-28 14:16:05.619461"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.629698"], ["updated_at", "2015-10-28 14:16:05.629698"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:16:05.632921"], ["updated_at", "2015-10-28 14:16:05.632921"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.638009"], ["updated_at", "2015-10-28 14:16:05.638009"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.643520"], ["updated_at", "2015-10-28 14:16:05.643520"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:16:05.646021"], ["updated_at", "2015-10-28 14:16:05.646021"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.653283"], ["updated_at", "2015-10-28 14:16:05.653283"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:16:05.657337"], ["updated_at", "2015-10-28 14:16:05.657337"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.662327"], ["updated_at", "2015-10-28 14:16:05.662327"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:16:05.664024"], ["updated_at", "2015-10-28 14:16:05.664024"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.666272"], ["updated_at", "2015-10-28 14:16:05.666272"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.6ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:16:05.674790"], ["updated_at", "2015-10-28 14:16:05.674790"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.3ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.2ms Sent mail to user16@sleede.com (3.2ms) Date: Wed, 28 Oct 2015 15:16:05 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630d8a5a79b0_16fb33fd9520601d8511f@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.691176"], ["updated_at", "2015-10-28 14:16:05.691176"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:16:05.695048"], ["updated_at", "2015-10-28 14:16:05.695048"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.698578"], ["updated_at", "2015-10-28 14:16:05.698578"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:16:05.702307"], ["updated_at", "2015-10-28 14:16:05.702307"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 44ee2261-7cde-4d8c-90ec-ed8df27af9f5) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] NotificationsMailer#send_mail_by: processed outbound mail in 3.7ms [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] Sent mail to user17@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] Date: Wed, 28 Oct 2015 15:16:05 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630d8a5b1bc9_16fb33fd9520601d852ea@mbp-sleede-nicolas.home.mail> Subject: subject notify new message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [44ee2261-7cde-4d8c-90ec-ed8df27af9f5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.35ms [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.731606"], ["updated_at", "2015-10-28 14:16:05.731606"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:16:05.733386"], ["updated_at", "2015-10-28 14:16:05.733386"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.740294"], ["updated_at", "2015-10-28 14:16:05.740294"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:16:05.748642"], ["updated_at", "2015-10-28 14:16:05.748642"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.752738"], ["updated_at", "2015-10-28 14:16:05.752738"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.758030"], ["updated_at", "2015-10-28 14:16:05.758030"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:16:05.762158"], ["updated_at", "2015-10-28 14:16:05.762158"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.765530"], ["updated_at", "2015-10-28 14:16:05.765530"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:16:05.767288"], ["updated_at", "2015-10-28 14:16:05.767288"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.768672"], ["updated_at", "2015-10-28 14:16:05.768672"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:16:05.774038"], ["updated_at", "2015-10-28 14:16:05.774038"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:16:05.775754"], ["updated_at", "2015-10-28 14:16:05.775754"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.780371"], ["updated_at", "2015-10-28 14:16:05.780371"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:16:05.786926"], ["updated_at", "2015-10-28 14:16:05.786926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.790356"], ["updated_at", "2015-10-28 14:16:05.790356"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.795777"], ["updated_at", "2015-10-28 14:16:05.795777"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:16:05.797442"], ["updated_at", "2015-10-28 14:16:05.797442"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.799461"], ["updated_at", "2015-10-28 14:16:05.799461"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:16:05.812826"], ["updated_at", "2015-10-28 14:16:05.812826"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.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.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:16:05.821085"], ["updated_at", "2015-10-28 14:16:05.821085"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:16:05.824234"], ["updated_at", "2015-10-28 14:16:05.824234"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:16:05.828779"], ["updated_at", "2015-10-28 14:16:05.828779"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:16:05.834594"], ["updated_at", "2015-10-28 14:16:05.834594"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.9ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (2.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.7ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.2ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:32:17.432562"], ["updated_at", "2015-10-28 14:32:17.432562"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.459079"], ["updated_at", "2015-10-28 14:32:17.459079"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.480610"], ["updated_at", "2015-10-28 14:32:17.480610"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.483566"], ["updated_at", "2015-10-28 14:32:17.483566"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 22ms (Views: 11.2ms | ActiveRecord: 0.0ms) [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:32:17.526896"], ["updated_at", "2015-10-28 14:32:17.526896"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.529086"], ["updated_at", "2015-10-28 14:32:17.529086"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.534215"], ["updated_at", "2015-10-28 14:32:17.534215"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.538071"], ["updated_at", "2015-10-28 14:32:17.538071"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/index.json.jbuilder (14.2ms) Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.4ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:32:17.568380"], ["updated_at", "2015-10-28 14:32:17.568380"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:17.570603"], ["updated_at", "2015-10-28 14:32:17.570603"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.573788"], ["updated_at", "2015-10-28 14:32:17.573788"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.577094"], ["updated_at", "2015-10-28 14:32:17.577094"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (3.3ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:32:17.599009"], ["updated_at", "2015-10-28 14:32:17.599009"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.601220"], ["updated_at", "2015-10-28 14:32:17.601220"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.603834"], ["updated_at", "2015-10-28 14:32:17.603834"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.605553"], ["updated_at", "2015-10-28 14:32:17.605553"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/show.json.jbuilder (2.5ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms) [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:32:17.620504"], ["updated_at", "2015-10-28 14:32:17.620504"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.623843"], ["updated_at", "2015-10-28 14:32:17.623843"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.627116"], ["updated_at", "2015-10-28 14:32:17.627116"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.628797"], ["updated_at", "2015-10-28 14:32:17.628797"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:32:17.799122"], ["updated_at", "2015-10-28 14:32:17.799122"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:17.801263"], ["updated_at", "2015-10-28 14:32:17.801263"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.805442"], ["updated_at", "2015-10-28 14:32:17.805442"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.809146"], ["updated_at", "2015-10-28 14:32:17.809146"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:32:17.817659"], ["updated_at", "2015-10-28 14:32:17.817659"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:17.819704"], ["updated_at", "2015-10-28 14:32:17.819704"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.822453"], ["updated_at", "2015-10-28 14:32:17.822453"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.824802"], ["updated_at", "2015-10-28 14:32:17.824802"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 19.3ms Sent mail to user7@sleede.com (8.4ms) Date: Wed, 28 Oct 2015 15:32:17 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630dc71d05bd_170993fc9260601d860a3@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.notifications_mailer.send_mail_by.subject_notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:32:17.861091"], ["updated_at", "2015-10-28 14:32:17.861091"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.863178"], ["updated_at", "2015-10-28 14:32:17.863178"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.867922"], ["updated_at", "2015-10-28 14:32:17.867922"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.872704"], ["updated_at", "2015-10-28 14:32:17.872704"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 7.0ms Sent mail to user8@sleede.com (2.9ms) Date: Wed, 28 Oct 2015 15:32:17 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630dc71d8596_170993fc9260601d8615d@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.notifications_mailer.send_mail_by.subject_notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:32:17.896041"], ["updated_at", "2015-10-28 14:32:17.896041"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:17.898060"], ["updated_at", "2015-10-28 14:32:17.898060"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.901572"], ["updated_at", "2015-10-28 14:32:17.901572"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.905705"], ["updated_at", "2015-10-28 14:32:17.905705"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user9@sleede.com (4.4ms) Date: Wed, 28 Oct 2015 15:32:17 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630dc71de8e9_170993fc9260601d8626d@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.notifications_mailer.send_mail_by.subject_notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:32:17.921351"], ["updated_at", "2015-10-28 14:32:17.921351"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.924541"], ["updated_at", "2015-10-28 14:32:17.924541"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.928256"], ["updated_at", "2015-10-28 14:32:17.928256"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:17.930449"], ["updated_at", "2015-10-28 14:32:17.930449"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.5ms) [1m[35mSQL (0.3ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.4ms Sent mail to user10@sleede.com (1.8ms) Date: Wed, 28 Oct 2015 15:32:17 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630dc71e5128_170993fc9260601d86369@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.notifications_mailer.send_mail_by.subject_notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.946934"], ["updated_at", "2015-10-28 14:32:17.946934"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:32:17.954644"], ["updated_at", "2015-10-28 14:32:17.954644"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.962739"], ["updated_at", "2015-10-28 14:32:17.962739"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:17.965950"], ["updated_at", "2015-10-28 14:32:17.965950"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.969050"], ["updated_at", "2015-10-28 14:32:17.969050"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:32:17.971148"], ["updated_at", "2015-10-28 14:32:17.971148"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.973854"], ["updated_at", "2015-10-28 14:32:17.973854"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:17.982105"], ["updated_at", "2015-10-28 14:32:17.982105"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:32:17.986096"], ["updated_at", "2015-10-28 14:32:17.986096"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:17.990158"], ["updated_at", "2015-10-28 14:32:17.990158"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:17.995665"], ["updated_at", "2015-10-28 14:32:17.995665"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:32:17.997710"], ["updated_at", "2015-10-28 14:32:17.997710"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.000054"], ["updated_at", "2015-10-28 14:32:18.000054"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.004160"], ["updated_at", "2015-10-28 14:32:18.004160"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:32:18.006240"], ["updated_at", "2015-10-28 14:32:18.006240"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.013505"], ["updated_at", "2015-10-28 14:32:18.013505"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:18.018885"], ["updated_at", "2015-10-28 14:32:18.018885"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:18.022937"], ["updated_at", "2015-10-28 14:32:18.022937"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:32:18.025464"], ["updated_at", "2015-10-28 14:32:18.025464"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.029001"], ["updated_at", "2015-10-28 14:32:18.029001"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.4ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:18.034140"], ["updated_at", "2015-10-28 14:32:18.034140"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user16@sleede.com (1.7ms) Date: Wed, 28 Oct 2015 15:32:18 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630dc729954_170993fc9260601d864ad@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.notifications_mailer.send_mail_by.subject_notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.047768"], ["updated_at", "2015-10-28 14:32:18.047768"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:32:18.052841"], ["updated_at", "2015-10-28 14:32:18.052841"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.058095"], ["updated_at", "2015-10-28 14:32:18.058095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:18.061764"], ["updated_at", "2015-10-28 14:32:18.061764"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a95feb7b-7701-4985-95e6-cc16760e3bbb) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] NotificationsMailer#send_mail_by: processed outbound mail in 4.3ms [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] Sent mail to user17@sleede.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] Date: Wed, 28 Oct 2015 15:32:18 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630dc7216b15_170993fc9260601d86594@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.notifications_mailer.send_mail_by.subject_notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [a95feb7b-7701-4985-95e6-cc16760e3bbb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.56ms [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:18.096776"], ["updated_at", "2015-10-28 14:32:18.096776"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:32:18.098856"], ["updated_at", "2015-10-28 14:32:18.098856"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.104173"], ["updated_at", "2015-10-28 14:32:18.104173"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:32:18.108689"], ["updated_at", "2015-10-28 14:32:18.108689"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.112610"], ["updated_at", "2015-10-28 14:32:18.112610"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:18.119216"], ["updated_at", "2015-10-28 14:32:18.119216"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:32:18.121135"], ["updated_at", "2015-10-28 14:32:18.121135"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.123782"], ["updated_at", "2015-10-28 14:32:18.123782"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:32:18.129483"], ["updated_at", "2015-10-28 14:32:18.129483"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.133241"], ["updated_at", "2015-10-28 14:32:18.133241"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:18.144251"], ["updated_at", "2015-10-28 14:32:18.144251"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:32:18.147885"], ["updated_at", "2015-10-28 14:32:18.147885"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.150784"], ["updated_at", "2015-10-28 14:32:18.150784"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:32:18.154782"], ["updated_at", "2015-10-28 14:32:18.154782"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.156978"], ["updated_at", "2015-10-28 14:32:18.156978"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.164767"], ["updated_at", "2015-10-28 14:32:18.164767"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:32:18.168873"], ["updated_at", "2015-10-28 14:32:18.168873"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.171804"], ["updated_at", "2015-10-28 14:32:18.171804"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:18.184763"], ["updated_at", "2015-10-28 14:32:18.184763"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:18.188193"], ["updated_at", "2015-10-28 14:32:18.188193"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:32:18.190097"], ["updated_at", "2015-10-28 14:32:18.190097"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:18.194115"], ["updated_at", "2015-10-28 14:32:18.194115"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:18.201088"], ["updated_at", "2015-10-28 14:32:18.201088"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.5ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.1ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (1.5ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.1ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar 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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:32:56.940653"], ["updated_at", "2015-10-28 14:32:56.940653"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:56.964941"], ["updated_at", "2015-10-28 14:32:56.964941"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.8ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:56.990604"], ["updated_at", "2015-10-28 14:32:56.990604"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:56.994370"], ["updated_at", "2015-10-28 14:32:56.994370"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 17ms (Views: 8.8ms | ActiveRecord: 0.0ms) [1m[35m (2.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:32:57.032969"], ["updated_at", "2015-10-28 14:32:57.032969"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.035170"], ["updated_at", "2015-10-28 14:32:57.035170"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.040197"], ["updated_at", "2015-10-28 14:32:57.040197"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.044580"], ["updated_at", "2015-10-28 14:32:57.044580"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.4ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.6ms) Rendered api/notifications/index.json.jbuilder (19.3ms) Completed 200 OK in 21ms (Views: 19.2ms | ActiveRecord: 0.6ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:32:57.108336"], ["updated_at", "2015-10-28 14:32:57.108336"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.112699"], ["updated_at", "2015-10-28 14:32:57.112699"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.119537"], ["updated_at", "2015-10-28 14:32:57.119537"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.121336"], ["updated_at", "2015-10-28 14:32:57.121336"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (5.1ms) Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 0.5ms) [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:32:57.147155"], ["updated_at", "2015-10-28 14:32:57.147155"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.150158"], ["updated_at", "2015-10-28 14:32:57.150158"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.156882"], ["updated_at", "2015-10-28 14:32:57.156882"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.165697"], ["updated_at", "2015-10-28 14:32:57.165697"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.2ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.3ms) [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:32:57.191140"], ["updated_at", "2015-10-28 14:32:57.191140"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.193411"], ["updated_at", "2015-10-28 14:32:57.193411"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.205246"], ["updated_at", "2015-10-28 14:32:57.205246"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.209536"], ["updated_at", "2015-10-28 14:32:57.209536"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.5ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 6ms (ActiveRecord: 0.6ms) [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:32:57.395766"], ["updated_at", "2015-10-28 14:32:57.395766"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.397917"], ["updated_at", "2015-10-28 14:32:57.397917"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.400896"], ["updated_at", "2015-10-28 14:32:57.400896"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.403192"], ["updated_at", "2015-10-28 14:32:57.403192"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:32:57.414815"], ["updated_at", "2015-10-28 14:32:57.414815"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.417058"], ["updated_at", "2015-10-28 14:32:57.417058"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.425700"], ["updated_at", "2015-10-28 14:32:57.425700"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.429129"], ["updated_at", "2015-10-28 14:32:57.429129"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 10.1ms [1m[36m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:32:57.447174"], ["updated_at", "2015-10-28 14:32:57.447174"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.451065"], ["updated_at", "2015-10-28 14:32:57.451065"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.464824"], ["updated_at", "2015-10-28 14:32:57.464824"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.468734"], ["updated_at", "2015-10-28 14:32:57.468734"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 3.0ms [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:32:57.481073"], ["updated_at", "2015-10-28 14:32:57.481073"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.486789"], ["updated_at", "2015-10-28 14:32:57.486789"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.495868"], ["updated_at", "2015-10-28 14:32:57.495868"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.500206"], ["updated_at", "2015-10-28 14:32:57.500206"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 6.1ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:32:57.511476"], ["updated_at", "2015-10-28 14:32:57.511476"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.515139"], ["updated_at", "2015-10-28 14:32:57.515139"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.534491"], ["updated_at", "2015-10-28 14:32:57.534491"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:32:57.537569"], ["updated_at", "2015-10-28 14:32:57.537569"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_by: processed outbound mail in 3.2ms [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.549330"], ["updated_at", "2015-10-28 14:32:57.549330"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:32:57.556477"], ["updated_at", "2015-10-28 14:32:57.556477"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.563651"], ["updated_at", "2015-10-28 14:32:57.563651"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.5ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:57.567912"], ["updated_at", "2015-10-28 14:32:57.567912"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.575110"], ["updated_at", "2015-10-28 14:32:57.575110"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:32:57.579126"], ["updated_at", "2015-10-28 14:32:57.579126"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.582043"], ["updated_at", "2015-10-28 14:32:57.582043"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.592564"], ["updated_at", "2015-10-28 14:32:57.592564"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:32:57.597418"], ["updated_at", "2015-10-28 14:32:57.597418"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.600030"], ["updated_at", "2015-10-28 14:32:57.600030"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.607161"], ["updated_at", "2015-10-28 14:32:57.607161"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:32:57.609027"], ["updated_at", "2015-10-28 14:32:57.609027"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.615558"], ["updated_at", "2015-10-28 14:32:57.615558"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.626466"], ["updated_at", "2015-10-28 14:32:57.626466"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:32:57.628572"], ["updated_at", "2015-10-28 14:32:57.628572"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.631380"], ["updated_at", "2015-10-28 14:32:57.631380"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:57.633637"], ["updated_at", "2015-10-28 14:32:57.633637"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.637473"], ["updated_at", "2015-10-28 14:32:57.637473"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:32:57.639345"], ["updated_at", "2015-10-28 14:32:57.639345"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.641522"], ["updated_at", "2015-10-28 14:32:57.641522"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:57.643465"], ["updated_at", "2015-10-28 14:32:57.643465"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_by: processed outbound mail in 3.5ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.652312"], ["updated_at", "2015-10-28 14:32:57.652312"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:32:57.654275"], ["updated_at", "2015-10-28 14:32:57.654275"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.657033"], ["updated_at", "2015-10-28 14:32:57.657033"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:57.659643"], ["updated_at", "2015-10-28 14:32:57.659643"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cbdab1c4-7cbe-47de-b573-8687e92a4f76) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [cbdab1c4-7cbe-47de-b573-8687e92a4f76] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [cbdab1c4-7cbe-47de-b573-8687e92a4f76] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.92ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.694008"], ["updated_at", "2015-10-28 14:32:57.694008"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:32:57.696018"], ["updated_at", "2015-10-28 14:32:57.696018"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.700783"], ["updated_at", "2015-10-28 14:32:57.700783"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:32:57.703041"], ["updated_at", "2015-10-28 14:32:57.703041"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.705100"], ["updated_at", "2015-10-28 14:32:57.705100"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.709580"], ["updated_at", "2015-10-28 14:32:57.709580"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:32:57.716863"], ["updated_at", "2015-10-28 14:32:57.716863"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.722328"], ["updated_at", "2015-10-28 14:32:57.722328"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:32:57.723944"], ["updated_at", "2015-10-28 14:32:57.723944"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.725231"], ["updated_at", "2015-10-28 14:32:57.725231"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:32:57.730390"], ["updated_at", "2015-10-28 14:32:57.730390"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:32:57.732661"], ["updated_at", "2015-10-28 14:32:57.732661"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.735737"], ["updated_at", "2015-10-28 14:32:57.735737"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:32:57.742339"], ["updated_at", "2015-10-28 14:32:57.742339"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.747805"], ["updated_at", "2015-10-28 14:32:57.747805"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (1.7ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.766744"], ["updated_at", "2015-10-28 14:32:57.766744"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:32:57.768453"], ["updated_at", "2015-10-28 14:32:57.768453"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.771198"], ["updated_at", "2015-10-28 14:32:57.771198"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:57.789913"], ["updated_at", "2015-10-28 14:32:57.789913"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:32:57.801690"], ["updated_at", "2015-10-28 14:32:57.801690"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:32:57.806661"], ["updated_at", "2015-10-28 14:32:57.806661"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:32:57.810829"], ["updated_at", "2015-10-28 14:32:57.810829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:32:57.812991"], ["updated_at", "2015-10-28 14:32:57.812991"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.0ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.7ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.7ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:36:19.427233"], ["updated_at", "2015-10-28 14:36:19.427233"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.449593"], ["updated_at", "2015-10-28 14:36:19.449593"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.5ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.474156"], ["updated_at", "2015-10-28 14:36:19.474156"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:19.477302"], ["updated_at", "2015-10-28 14:36:19.477302"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 8.9ms | ActiveRecord: 0.0ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:36:19.514786"], ["updated_at", "2015-10-28 14:36:19.514786"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.516838"], ["updated_at", "2015-10-28 14:36:19.516838"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.521474"], ["updated_at", "2015-10-28 14:36:19.521474"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:19.525365"], ["updated_at", "2015-10-28 14:36:19.525365"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (1.1ms) Rendered api/notifications/index.json.jbuilder (15.2ms) Completed 200 OK in 17ms (Views: 15.8ms | ActiveRecord: 0.3ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:36:19.584443"], ["updated_at", "2015-10-28 14:36:19.584443"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:19.586680"], ["updated_at", "2015-10-28 14:36:19.586680"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.593070"], ["updated_at", "2015-10-28 14:36:19.593070"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:19.596750"], ["updated_at", "2015-10-28 14:36:19.596750"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered api/notifications/show.json.jbuilder (5.3ms) Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.4ms) [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:36:19.622842"], ["updated_at", "2015-10-28 14:36:19.622842"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.625991"], ["updated_at", "2015-10-28 14:36:19.625991"]] [1m[36m (2.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.636684"], ["updated_at", "2015-10-28 14:36:19.636684"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:19.646437"], ["updated_at", "2015-10-28 14:36:19.646437"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (2.2ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (7.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:36:19.668523"], ["updated_at", "2015-10-28 14:36:19.668523"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.680405"], ["updated_at", "2015-10-28 14:36:19.680405"]] [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.689419"], ["updated_at", "2015-10-28 14:36:19.689419"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:19.700332"], ["updated_at", "2015-10-28 14:36:19.700332"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:36:19.886503"], ["updated_at", "2015-10-28 14:36:19.886503"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:19.890035"], ["updated_at", "2015-10-28 14:36:19.890035"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.902191"], ["updated_at", "2015-10-28 14:36:19.902191"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:19.906074"], ["updated_at", "2015-10-28 14:36:19.906074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:36:19.913455"], ["updated_at", "2015-10-28 14:36:19.913455"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:19.917351"], ["updated_at", "2015-10-28 14:36:19.917351"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.4ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:19.928339"], ["updated_at", "2015-10-28 14:36:19.928339"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:19.934739"], ["updated_at", "2015-10-28 14:36:19.934739"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 30.7ms Sent mail to user7@sleede.com (7.7ms) Date: Wed, 28 Oct 2015 15:36:19 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630dd63edffa_170dc3fd1b04601d87412@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:36:19.983627"], ["updated_at", "2015-10-28 14:36:19.983627"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:19.986667"], ["updated_at", "2015-10-28 14:36:19.986667"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.002173"], ["updated_at", "2015-10-28 14:36:20.002173"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:20.007768"], ["updated_at", "2015-10-28 14:36:20.007768"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 7.3ms Sent mail to user8@sleede.com (1.8ms) Date: Wed, 28 Oct 2015 15:36:20 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630dd647830_170dc3fd1b04601d8759c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:36:20.036101"], ["updated_at", "2015-10-28 14:36:20.036101"]] [1m[36m (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:20.057907"], ["updated_at", "2015-10-28 14:36:20.057907"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.066540"], ["updated_at", "2015-10-28 14:36:20.066540"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:20.070828"], ["updated_at", "2015-10-28 14:36:20.070828"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user9@sleede.com (1.7ms) Date: Wed, 28 Oct 2015 15:36:20 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630dd6412457_170dc3fd1b04601d8763f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[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 (2.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:36:20.080237"], ["updated_at", "2015-10-28 14:36:20.080237"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.090308"], ["updated_at", "2015-10-28 14:36:20.090308"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.099513"], ["updated_at", "2015-10-28 14:36:20.099513"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:36:20.102779"], ["updated_at", "2015-10-28 14:36:20.102779"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (1.2ms) Date: Wed, 28 Oct 2015 15:36:20 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630dd6419f5b_170dc3fd1b04601d8778@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.109642"], ["updated_at", "2015-10-28 14:36:20.109642"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:36:20.111736"], ["updated_at", "2015-10-28 14:36:20.111736"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.114708"], ["updated_at", "2015-10-28 14:36:20.114708"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:36:20.116800"], ["updated_at", "2015-10-28 14:36:20.116800"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.120910"], ["updated_at", "2015-10-28 14:36:20.120910"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:36:20.125937"], ["updated_at", "2015-10-28 14:36:20.125937"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.131092"], ["updated_at", "2015-10-28 14:36:20.131092"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.140572"], ["updated_at", "2015-10-28 14:36:20.140572"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:36:20.142649"], ["updated_at", "2015-10-28 14:36:20.142649"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.145189"], ["updated_at", "2015-10-28 14:36:20.145189"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:20.157952"], ["updated_at", "2015-10-28 14:36:20.157952"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:36:20.167819"], ["updated_at", "2015-10-28 14:36:20.167819"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.170383"], ["updated_at", "2015-10-28 14:36:20.170383"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.177431"], ["updated_at", "2015-10-28 14:36:20.177431"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:36:20.180396"], ["updated_at", "2015-10-28 14:36:20.180396"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.183955"], ["updated_at", "2015-10-28 14:36:20.183955"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:36:20.186886"], ["updated_at", "2015-10-28 14:36:20.186886"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:20.194065"], ["updated_at", "2015-10-28 14:36:20.194065"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:36:20.196740"], ["updated_at", "2015-10-28 14:36:20.196740"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.199435"], ["updated_at", "2015-10-28 14:36:20.199435"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:36:20.203383"], ["updated_at", "2015-10-28 14:36:20.203383"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user16@sleede.com (7.5ms) Date: Wed, 28 Oct 2015 15:36:20 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630dd6433e3f_170dc3fd1b04601d8782@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.219507"], ["updated_at", "2015-10-28 14:36:20.219507"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:36:20.225484"], ["updated_at", "2015-10-28 14:36:20.225484"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.232809"], ["updated_at", "2015-10-28 14:36:20.232809"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:36:20.235529"], ["updated_at", "2015-10-28 14:36:20.235529"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e24ff2cb-70a5-45cb-ac39-c909e3166c05) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] NotificationsMailer#send_mail_by: processed outbound mail in 7.0ms [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] Sent mail to user17@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] Date: Wed, 28 Oct 2015 15:36:20 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630dd64419b7_170dc3fd1b04601d87922@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [e24ff2cb-70a5-45cb-ac39-c909e3166c05] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.03ms [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:20.272240"], ["updated_at", "2015-10-28 14:36:20.272240"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:36:20.273908"], ["updated_at", "2015-10-28 14:36:20.273908"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.287076"], ["updated_at", "2015-10-28 14:36:20.287076"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:36:20.299719"], ["updated_at", "2015-10-28 14:36:20.299719"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.304253"], ["updated_at", "2015-10-28 14:36:20.304253"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:20.308538"], ["updated_at", "2015-10-28 14:36:20.308538"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:36:20.310234"], ["updated_at", "2015-10-28 14:36:20.310234"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.313877"], ["updated_at", "2015-10-28 14:36:20.313877"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:36:20.320488"], ["updated_at", "2015-10-28 14:36:20.320488"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.333811"], ["updated_at", "2015-10-28 14:36:20.333811"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:36:20.348498"], ["updated_at", "2015-10-28 14:36:20.348498"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:36:20.351816"], ["updated_at", "2015-10-28 14:36:20.351816"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.362839"], ["updated_at", "2015-10-28 14:36:20.362839"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:36:20.364918"], ["updated_at", "2015-10-28 14:36:20.364918"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.366504"], ["updated_at", "2015-10-28 14:36:20.366504"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.375994"], ["updated_at", "2015-10-28 14:36:20.375994"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:36:20.379654"], ["updated_at", "2015-10-28 14:36:20.379654"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.384871"], ["updated_at", "2015-10-28 14:36:20.384871"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:36:20.395923"], ["updated_at", "2015-10-28 14:36:20.395923"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:36:20.399531"], ["updated_at", "2015-10-28 14:36:20.399531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:36:20.401437"], ["updated_at", "2015-10-28 14:36:20.401437"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:36:20.409202"], ["updated_at", "2015-10-28 14:36:20.409202"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:36:20.415948"], ["updated_at", "2015-10-28 14:36:20.415948"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.5ms)[0m CREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.1ms)[0m [1mCREATE TABLE "notification_types_receivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE INDEX "index_notification_types_receivers_on_notification_type_id" ON "notification_types_receivers" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_types_receivers_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_receiv_on_receiver_type_and_receiver_id" ON "notification_types_receivers" ("receiver_type", "receiver_id") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 14:37:55.899221"], ["updated_at", "2015-10-28 14:37:55.899221"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:55.922943"], ["updated_at", "2015-10-28 14:37:55.922943"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:55.950223"], ["updated_at", "2015-10-28 14:37:55.950223"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:55.953452"], ["updated_at", "2015-10-28 14:37:55.953452"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.4ms) Completed 200 OK in 23ms (Views: 11.8ms | ActiveRecord: 0.0ms) [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 14:37:55.995897"], ["updated_at", "2015-10-28 14:37:55.995897"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:55.998044"], ["updated_at", "2015-10-28 14:37:55.998044"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.002920"], ["updated_at", "2015-10-28 14:37:56.002920"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.007763"], ["updated_at", "2015-10-28 14:37:56.007763"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.4ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered api/notifications/index.json.jbuilder (18.3ms) Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 0.9ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 14:37:56.037659"], ["updated_at", "2015-10-28 14:37:56.037659"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.040261"], ["updated_at", "2015-10-28 14:37:56.040261"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.047998"], ["updated_at", "2015-10-28 14:37:56.047998"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.055664"], ["updated_at", "2015-10-28 14:37:56.055664"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (5.1ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 14:37:56.079520"], ["updated_at", "2015-10-28 14:37:56.079520"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.081253"], ["updated_at", "2015-10-28 14:37:56.081253"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.088737"], ["updated_at", "2015-10-28 14:37:56.088737"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.091733"], ["updated_at", "2015-10-28 14:37:56.091733"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/show.json.jbuilder (8.8ms) Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 0.8ms) [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 14:37:56.125957"], ["updated_at", "2015-10-28 14:37:56.125957"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.128650"], ["updated_at", "2015-10-28 14:37:56.128650"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.134468"], ["updated_at", "2015-10-28 14:37:56.134468"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.139189"], ["updated_at", "2015-10-28 14:37:56.139189"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 14:37:56.310159"], ["updated_at", "2015-10-28 14:37:56.310159"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.312209"], ["updated_at", "2015-10-28 14:37:56.312209"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.315144"], ["updated_at", "2015-10-28 14:37:56.315144"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.317207"], ["updated_at", "2015-10-28 14:37:56.317207"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 14:37:56.326421"], ["updated_at", "2015-10-28 14:37:56.326421"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.328559"], ["updated_at", "2015-10-28 14:37:56.328559"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.332476"], ["updated_at", "2015-10-28 14:37:56.332476"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.334154"], ["updated_at", "2015-10-28 14:37:56.334154"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 23.9ms Sent mail to user7@sleede.com (7.2ms) Date: Wed, 28 Oct 2015 15:37:56 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630ddc459b6f_170f33fc1e0c601d8197bc@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 14:37:56.377768"], ["updated_at", "2015-10-28 14:37:56.377768"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.383295"], ["updated_at", "2015-10-28 14:37:56.383295"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.387394"], ["updated_at", "2015-10-28 14:37:56.387394"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.392750"], ["updated_at", "2015-10-28 14:37:56.392750"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user8@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 15:37:56 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630ddc460dbe_170f33fc1e0c601d8198a3@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 14:37:56.400291"], ["updated_at", "2015-10-28 14:37:56.400291"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.403052"], ["updated_at", "2015-10-28 14:37:56.403052"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.416536"], ["updated_at", "2015-10-28 14:37:56.416536"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.420106"], ["updated_at", "2015-10-28 14:37:56.420106"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.3ms Sent mail to user9@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 15:37:56 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630ddc4680ea_170f33fc1e0c601d81992c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 14:37:56.432598"], ["updated_at", "2015-10-28 14:37:56.432598"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.437956"], ["updated_at", "2015-10-28 14:37:56.437956"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.445873"], ["updated_at", "2015-10-28 14:37:56.445873"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 14:37:56.449293"], ["updated_at", "2015-10-28 14:37:56.449293"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.4ms Sent mail to user10@sleede.com (3.1ms) Date: Wed, 28 Oct 2015 15:37:56 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630ddc4703dc_170f33fc1e0c601d820063@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.465896"], ["updated_at", "2015-10-28 14:37:56.465896"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 14:37:56.469160"], ["updated_at", "2015-10-28 14:37:56.469160"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.476276"], ["updated_at", "2015-10-28 14:37:56.476276"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:37:56.481630"], ["updated_at", "2015-10-28 14:37:56.481630"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.487332"], ["updated_at", "2015-10-28 14:37:56.487332"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 14:37:56.494574"], ["updated_at", "2015-10-28 14:37:56.494574"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.503362"], ["updated_at", "2015-10-28 14:37:56.503362"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.517734"], ["updated_at", "2015-10-28 14:37:56.517734"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 14:37:56.519927"], ["updated_at", "2015-10-28 14:37:56.519927"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.533218"], ["updated_at", "2015-10-28 14:37:56.533218"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.546746"], ["updated_at", "2015-10-28 14:37:56.546746"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 14:37:56.548707"], ["updated_at", "2015-10-28 14:37:56.548707"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.552568"], ["updated_at", "2015-10-28 14:37:56.552568"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.7ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.569213"], ["updated_at", "2015-10-28 14:37:56.569213"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 14:37:56.574667"], ["updated_at", "2015-10-28 14:37:56.574667"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.581076"], ["updated_at", "2015-10-28 14:37:56.581076"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:37:56.583428"], ["updated_at", "2015-10-28 14:37:56.583428"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.597400"], ["updated_at", "2015-10-28 14:37:56.597400"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 14:37:56.599946"], ["updated_at", "2015-10-28 14:37:56.599946"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.605983"], ["updated_at", "2015-10-28 14:37:56.605983"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:37:56.610420"], ["updated_at", "2015-10-28 14:37:56.610420"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.8ms Sent mail to user16@sleede.com (6.3ms) Date: Wed, 28 Oct 2015 15:37:56 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630ddc496a36_170f33fc1e0c601d8201e9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.632029"], ["updated_at", "2015-10-28 14:37:56.632029"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 14:37:56.639953"], ["updated_at", "2015-10-28 14:37:56.639953"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.648078"], ["updated_at", "2015-10-28 14:37:56.648078"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:37:56.655846"], ["updated_at", "2015-10-28 14:37:56.655846"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4a6b7400-fc89-4f45-9589-c3d5bab21a7a) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] NotificationsMailer#send_mail_by: processed outbound mail in 10.8ms [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] Sent mail to user17@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] Date: Wed, 28 Oct 2015 15:37:56 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630ddc4ab017_170f33fc1e0c601d82027d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [4a6b7400-fc89-4f45-9589-c3d5bab21a7a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 13.18ms [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.704459"], ["updated_at", "2015-10-28 14:37:56.704459"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 14:37:56.706916"], ["updated_at", "2015-10-28 14:37:56.706916"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.714710"], ["updated_at", "2015-10-28 14:37:56.714710"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 14:37:56.716598"], ["updated_at", "2015-10-28 14:37:56.716598"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.721820"], ["updated_at", "2015-10-28 14:37:56.721820"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.727806"], ["updated_at", "2015-10-28 14:37:56.727806"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 14:37:56.729643"], ["updated_at", "2015-10-28 14:37:56.729643"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.733068"], ["updated_at", "2015-10-28 14:37:56.733068"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 14:37:56.734838"], ["updated_at", "2015-10-28 14:37:56.734838"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.742978"], ["updated_at", "2015-10-28 14:37:56.742978"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 14:37:56.748734"], ["updated_at", "2015-10-28 14:37:56.748734"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 14:37:56.752282"], ["updated_at", "2015-10-28 14:37:56.752282"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (7.7ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.768253"], ["updated_at", "2015-10-28 14:37:56.768253"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 14:37:56.772396"], ["updated_at", "2015-10-28 14:37:56.772396"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.776318"], ["updated_at", "2015-10-28 14:37:56.776318"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.780842"], ["updated_at", "2015-10-28 14:37:56.780842"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 14:37:56.785482"], ["updated_at", "2015-10-28 14:37:56.785482"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.795712"], ["updated_at", "2015-10-28 14:37:56.795712"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:37:56.811382"], ["updated_at", "2015-10-28 14:37:56.811382"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 14:37:56.817980"], ["updated_at", "2015-10-28 14:37:56.817980"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (5.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 14:37:56.825637"], ["updated_at", "2015-10-28 14:37:56.825637"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 14:37:56.841595"], ["updated_at", "2015-10-28 14:37:56.841595"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 14:37:56.845711"], ["updated_at", "2015-10-28 14:37:56.845711"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.3ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[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 (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (2.7ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:18:53.415948"], ["updated_at", "2015-10-28 16:18:53.415948"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.432146"], ["updated_at", "2015-10-28 16:18:53.432146"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.454830"], ["updated_at", "2015-10-28 16:18:53.454830"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.462143"], ["updated_at", "2015-10-28 16:18:53.462143"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.464977"], ["updated_at", "2015-10-28 16:18:53.464977"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 9.4ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:18:53.502556"], ["updated_at", "2015-10-28 16:18:53.502556"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.504601"], ["updated_at", "2015-10-28 16:18:53.504601"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.506763"], ["updated_at", "2015-10-28 16:18:53.506763"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.507981"], ["updated_at", "2015-10-28 16:18:53.507981"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.509446"], ["updated_at", "2015-10-28 16:18:53.509446"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (12.5ms) Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:18:53.531349"], ["updated_at", "2015-10-28 16:18:53.531349"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.533338"], ["updated_at", "2015-10-28 16:18:53.533338"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.535640"], ["updated_at", "2015-10-28 16:18:53.535640"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.538477"], ["updated_at", "2015-10-28 16:18:53.538477"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.540844"], ["updated_at", "2015-10-28 16:18:53.540844"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (3.3ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:18:53.560773"], ["updated_at", "2015-10-28 16:18:53.560773"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.564483"], ["updated_at", "2015-10-28 16:18:53.564483"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.567367"], ["updated_at", "2015-10-28 16:18:53.567367"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.568849"], ["updated_at", "2015-10-28 16:18:53.568849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.570598"], ["updated_at", "2015-10-28 16:18:53.570598"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:18:53.582362"], ["updated_at", "2015-10-28 16:18:53.582362"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.584517"], ["updated_at", "2015-10-28 16:18:53.584517"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.587003"], ["updated_at", "2015-10-28 16:18:53.587003"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.588252"], ["updated_at", "2015-10-28 16:18:53.588252"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.589674"], ["updated_at", "2015-10-28 16:18:53.589674"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:18:53.759536"], ["updated_at", "2015-10-28 16:18:53.759536"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.761692"], ["updated_at", "2015-10-28 16:18:53.761692"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.763844"], ["updated_at", "2015-10-28 16:18:53.763844"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.765032"], ["updated_at", "2015-10-28 16:18:53.765032"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.766471"], ["updated_at", "2015-10-28 16:18:53.766471"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:18:53.772647"], ["updated_at", "2015-10-28 16:18:53.772647"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.774656"], ["updated_at", "2015-10-28 16:18:53.774656"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.776738"], ["updated_at", "2015-10-28 16:18:53.776738"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.777872"], ["updated_at", "2015-10-28 16:18:53.777872"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.779320"], ["updated_at", "2015-10-28 16:18:53.779320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 19.4ms Sent mail to user7@sleede.com (8.0ms) Date: Wed, 28 Oct 2015 17:18:53 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630f56dc4b7d_176713fc8b18601dc8396d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:18:53.812683"], ["updated_at", "2015-10-28 16:18:53.812683"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.814992"], ["updated_at", "2015-10-28 16:18:53.814992"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.817490"], ["updated_at", "2015-10-28 16:18:53.817490"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.821007"], ["updated_at", "2015-10-28 16:18:53.821007"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.825048"], ["updated_at", "2015-10-28 16:18:53.825048"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.4ms Sent mail to user8@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 17:18:53 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5630f56dcacb4_176713fc8b18601dc8402e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:18:53.834064"], ["updated_at", "2015-10-28 16:18:53.834064"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.835953"], ["updated_at", "2015-10-28 16:18:53.835953"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.837917"], ["updated_at", "2015-10-28 16:18:53.837917"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.839022"], ["updated_at", "2015-10-28 16:18:53.839022"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.840381"], ["updated_at", "2015-10-28 16:18:53.840381"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 17:18:53 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5630f56dcdec5_176713fc8b18601dc841fc@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:18:53.846935"], ["updated_at", "2015-10-28 16:18:53.846935"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.848740"], ["updated_at", "2015-10-28 16:18:53.848740"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.850671"], ["updated_at", "2015-10-28 16:18:53.850671"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.851813"], ["updated_at", "2015-10-28 16:18:53.851813"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:18:53.853165"], ["updated_at", "2015-10-28 16:18:53.853165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 17:18:53 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5630f56dd109c_176713fc8b18601dc8423b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.860645"], ["updated_at", "2015-10-28 16:18:53.860645"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:18:53.862464"], ["updated_at", "2015-10-28 16:18:53.862464"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.865883"], ["updated_at", "2015-10-28 16:18:53.865883"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.867319"], ["updated_at", "2015-10-28 16:18:53.867319"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:53.874900"], ["updated_at", "2015-10-28 16:18:53.874900"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.880176"], ["updated_at", "2015-10-28 16:18:53.880176"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:18:53.881656"], ["updated_at", "2015-10-28 16:18:53.881656"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.883878"], ["updated_at", "2015-10-28 16:18:53.883878"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.885058"], ["updated_at", "2015-10-28 16:18:53.885058"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.890068"], ["updated_at", "2015-10-28 16:18:53.890068"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:18:53.891559"], ["updated_at", "2015-10-28 16:18:53.891559"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.893600"], ["updated_at", "2015-10-28 16:18:53.893600"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.894714"], ["updated_at", "2015-10-28 16:18:53.894714"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.898760"], ["updated_at", "2015-10-28 16:18:53.898760"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:18:53.900562"], ["updated_at", "2015-10-28 16:18:53.900562"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.902928"], ["updated_at", "2015-10-28 16:18:53.902928"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.904108"], ["updated_at", "2015-10-28 16:18:53.904108"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.909883"], ["updated_at", "2015-10-28 16:18:53.909883"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:18:53.911889"], ["updated_at", "2015-10-28 16:18:53.911889"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.914654"], ["updated_at", "2015-10-28 16:18:53.914654"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.915850"], ["updated_at", "2015-10-28 16:18:53.915850"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:53.917559"], ["updated_at", "2015-10-28 16:18:53.917559"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.925448"], ["updated_at", "2015-10-28 16:18:53.925448"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:18:53.929695"], ["updated_at", "2015-10-28 16:18:53.929695"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.932301"], ["updated_at", "2015-10-28 16:18:53.932301"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.933556"], ["updated_at", "2015-10-28 16:18:53.933556"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:53.935514"], ["updated_at", "2015-10-28 16:18:53.935514"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user16@sleede.com (1.7ms) Date: Wed, 28 Oct 2015 17:18:53 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5630f56de527d_176713fc8b18601dc843a9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.942625"], ["updated_at", "2015-10-28 16:18:53.942625"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:18:53.944197"], ["updated_at", "2015-10-28 16:18:53.944197"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.946269"], ["updated_at", "2015-10-28 16:18:53.946269"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.947401"], ["updated_at", "2015-10-28 16:18:53.947401"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:53.949122"], ["updated_at", "2015-10-28 16:18:53.949122"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1da14049-eb15-4b24-bb95-1b4dd04a16ee) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] NotificationsMailer#send_mail_by: processed outbound mail in 5.6ms [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] Sent mail to user17@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] Date: Wed, 28 Oct 2015 17:18:53 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <5630f56def8b4_176713fc8b18601dc844ce@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [1da14049-eb15-4b24-bb95-1b4dd04a16ee] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.54ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.984176"], ["updated_at", "2015-10-28 16:18:53.984176"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 16:18:53.985691"], ["updated_at", "2015-10-28 16:18:53.985691"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:53.987731"], ["updated_at", "2015-10-28 16:18:53.987731"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:53.988855"], ["updated_at", "2015-10-28 16:18:53.988855"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 16:18:53.990247"], ["updated_at", "2015-10-28 16:18:53.990247"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:53.991417"], ["updated_at", "2015-10-28 16:18:53.991417"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:53.992746"], ["updated_at", "2015-10-28 16:18:53.992746"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:53.996579"], ["updated_at", "2015-10-28 16:18:53.996579"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 16:18:53.998104"], ["updated_at", "2015-10-28 16:18:53.998104"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:54.000209"], ["updated_at", "2015-10-28 16:18:54.000209"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:54.001422"], ["updated_at", "2015-10-28 16:18:54.001422"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 16:18:54.002837"], ["updated_at", "2015-10-28 16:18:54.002837"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:54.003946"], ["updated_at", "2015-10-28 16:18:54.003946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:54.005168"], ["updated_at", "2015-10-28 16:18:54.005168"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:54.009138"], ["updated_at", "2015-10-28 16:18:54.009138"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 16:18:54.010607"], ["updated_at", "2015-10-28 16:18:54.010607"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:54.012848"], ["updated_at", "2015-10-28 16:18:54.012848"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:54.014023"], ["updated_at", "2015-10-28 16:18:54.014023"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-28 16:18:54.015398"], ["updated_at", "2015-10-28 16:18:54.015398"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:54.016774"], ["updated_at", "2015-10-28 16:18:54.016774"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:54.018947"], ["updated_at", "2015-10-28 16:18:54.018947"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:18:54.024422"], ["updated_at", "2015-10-28 16:18:54.024422"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-28 16:18:54.026355"], ["updated_at", "2015-10-28 16:18:54.026355"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:54.028694"], ["updated_at", "2015-10-28 16:18:54.028694"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:54.029883"], ["updated_at", "2015-10-28 16:18:54.029883"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:54.038481"], ["updated_at", "2015-10-28 16:18:54.038481"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:18:54.046167"], ["updated_at", "2015-10-28 16:18:54.046167"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-28 16:18:54.047707"], ["updated_at", "2015-10-28 16:18:54.047707"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:18:54.050103"], ["updated_at", "2015-10-28 16:18:54.050103"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:18:54.051417"], ["updated_at", "2015-10-28 16:18:54.051417"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:18:54.053328"], ["updated_at", "2015-10-28 16:18:54.053328"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [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[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (0.9ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:55.754147"], ["updated_at", "2015-10-28 16:26:55.754147"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:26:55.774771"], ["updated_at", "2015-10-28 16:26:55.774771"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.788739"], ["updated_at", "2015-10-28 16:26:55.788739"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:55.806879"], ["updated_at", "2015-10-28 16:26:55.806879"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:55.820987"], ["updated_at", "2015-10-28 16:26:55.820987"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:55.825170"], ["updated_at", "2015-10-28 16:26:55.825170"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:26:55.826837"], ["updated_at", "2015-10-28 16:26:55.826837"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.829235"], ["updated_at", "2015-10-28 16:26:55.829235"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:55.830546"], ["updated_at", "2015-10-28 16:26:55.830546"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:55.841817"], ["updated_at", "2015-10-28 16:26:55.841817"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:26:55.843581"], ["updated_at", "2015-10-28 16:26:55.843581"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.845954"], ["updated_at", "2015-10-28 16:26:55.845954"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:55.847203"], ["updated_at", "2015-10-28 16:26:55.847203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:55.851195"], ["updated_at", "2015-10-28 16:26:55.851195"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:26:55.852903"], ["updated_at", "2015-10-28 16:26:55.852903"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.855355"], ["updated_at", "2015-10-28 16:26:55.855355"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:55.856667"], ["updated_at", "2015-10-28 16:26:55.856667"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:55.862520"], ["updated_at", "2015-10-28 16:26:55.862520"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:26:55.865463"], ["updated_at", "2015-10-28 16:26:55.865463"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.869063"], ["updated_at", "2015-10-28 16:26:55.869063"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:55.871096"], ["updated_at", "2015-10-28 16:26:55.871096"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:55.877116"], ["updated_at", "2015-10-28 16:26:55.877116"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:55.884303"], ["updated_at", "2015-10-28 16:26:55.884303"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:26:55.886162"], ["updated_at", "2015-10-28 16:26:55.886162"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:55.888783"], ["updated_at", "2015-10-28 16:26:55.888783"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:55.890099"], ["updated_at", "2015-10-28 16:26:55.890099"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:55.892038"], ["updated_at", "2015-10-28 16:26:55.892038"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 170.8ms Sent mail to user6@sleede.com (6.7ms) Date: Wed, 28 Oct 2015 17:26:56 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630f75011130_176e13fe3c60601dc56f9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:56.075718"], ["updated_at", "2015-10-28 16:26:56.075718"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:26:56.077545"], ["updated_at", "2015-10-28 16:26:56.077545"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.080138"], ["updated_at", "2015-10-28 16:26:56.080138"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:56.081475"], ["updated_at", "2015-10-28 16:26:56.081475"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:56.083451"], ["updated_at", "2015-10-28 16:26:56.083451"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 063fdb2e-2c37-4a3c-988c-11e039efde00) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] NotificationsMailer#send_mail_by: processed outbound mail in 8.6ms [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] Sent mail to user7@sleede.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] Date: Wed, 28 Oct 2015 17:26:56 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630f7501beec_176e13fe3c60601dc5738@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [063fdb2e-2c37-4a3c-988c-11e039efde00] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.56ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:56.118321"], ["updated_at", "2015-10-28 16:26:56.118321"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:26:56.119957"], ["updated_at", "2015-10-28 16:26:56.119957"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.127012"], ["updated_at", "2015-10-28 16:26:56.127012"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:56.131217"], ["updated_at", "2015-10-28 16:26:56.131217"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.138115"], ["updated_at", "2015-10-28 16:26:56.138115"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:26:56.139813"], ["updated_at", "2015-10-28 16:26:56.139813"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.142134"], ["updated_at", "2015-10-28 16:26:56.142134"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:56.143369"], ["updated_at", "2015-10-28 16:26:56.143369"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:26:56.144964"], ["updated_at", "2015-10-28 16:26:56.144964"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:56.146140"], ["updated_at", "2015-10-28 16:26:56.146140"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.147700"], ["updated_at", "2015-10-28 16:26:56.147700"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:56.151456"], ["updated_at", "2015-10-28 16:26:56.151456"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:26:56.153008"], ["updated_at", "2015-10-28 16:26:56.153008"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.155370"], ["updated_at", "2015-10-28 16:26:56.155370"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:56.156601"], ["updated_at", "2015-10-28 16:26:56.156601"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:26:56.158026"], ["updated_at", "2015-10-28 16:26:56.158026"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:56.159157"], ["updated_at", "2015-10-28 16:26:56.159157"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:56.162687"], ["updated_at", "2015-10-28 16:26:56.162687"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.168116"], ["updated_at", "2015-10-28 16:26:56.168116"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:26:56.170107"], ["updated_at", "2015-10-28 16:26:56.170107"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.177259"], ["updated_at", "2015-10-28 16:26:56.177259"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:56.181765"], ["updated_at", "2015-10-28 16:26:56.181765"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:26:56.184201"], ["updated_at", "2015-10-28 16:26:56.184201"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:56.185606"], ["updated_at", "2015-10-28 16:26:56.185606"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.187016"], ["updated_at", "2015-10-28 16:26:56.187016"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:26:56.190496"], ["updated_at", "2015-10-28 16:26:56.190496"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:26:56.192092"], ["updated_at", "2015-10-28 16:26:56.192092"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.194511"], ["updated_at", "2015-10-28 16:26:56.194511"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:56.195777"], ["updated_at", "2015-10-28 16:26:56.195777"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:56.208187"], ["updated_at", "2015-10-28 16:26:56.208187"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:26:56.214224"], ["updated_at", "2015-10-28 16:26:56.214224"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:26:56.216725"], ["updated_at", "2015-10-28 16:26:56.216725"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:26:56.220045"], ["updated_at", "2015-10-28 16:26:56.220045"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:26:56.224397"], ["updated_at", "2015-10-28 16:26:56.224397"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:26:56.229831"], ["updated_at", "2015-10-28 16:26:56.229831"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:28:02.489503"], ["updated_at", "2015-10-28 16:28:02.489503"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:28:02.514862"], ["updated_at", "2015-10-28 16:28:02.514862"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.531123"], ["updated_at", "2015-10-28 16:28:02.531123"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.552324"], ["updated_at", "2015-10-28 16:28:02.552324"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.565497"], ["updated_at", "2015-10-28 16:28:02.565497"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.569559"], ["updated_at", "2015-10-28 16:28:02.569559"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:28:02.571332"], ["updated_at", "2015-10-28 16:28:02.571332"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.573691"], ["updated_at", "2015-10-28 16:28:02.573691"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.574907"], ["updated_at", "2015-10-28 16:28:02.574907"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.576686"], ["updated_at", "2015-10-28 16:28:02.576686"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.580058"], ["updated_at", "2015-10-28 16:28:02.580058"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:28:02.581592"], ["updated_at", "2015-10-28 16:28:02.581592"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.583722"], ["updated_at", "2015-10-28 16:28:02.583722"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.584866"], ["updated_at", "2015-10-28 16:28:02.584866"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.586709"], ["updated_at", "2015-10-28 16:28:02.586709"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 167.3ms Sent mail to user3@sleede.com (6.2ms) Date: Wed, 28 Oct 2015 17:28:02 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630f792b9963_176f03fe0a44601d0986d4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.765627"], ["updated_at", "2015-10-28 16:28:02.765627"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:28:02.767370"], ["updated_at", "2015-10-28 16:28:02.767370"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.770409"], ["updated_at", "2015-10-28 16:28:02.770409"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.771984"], ["updated_at", "2015-10-28 16:28:02.771984"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.774044"], ["updated_at", "2015-10-28 16:28:02.774044"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 67393dc3-1e59-4bbb-95e2-7cad0af03ba2) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] NotificationsMailer#send_mail_by: processed outbound mail in 7.1ms [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] Sent mail to user4@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] Date: Wed, 28 Oct 2015 17:28:02 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630f792c3fa0_176f03fe0a44601d09872c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[ActiveJob] [ActionMailer::DeliveryJob] [67393dc3-1e59-4bbb-95e2-7cad0af03ba2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.26ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.806243"], ["updated_at", "2015-10-28 16:28:02.806243"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:28:02.808071"], ["updated_at", "2015-10-28 16:28:02.808071"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.810230"], ["updated_at", "2015-10-28 16:28:02.810230"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.811330"], ["updated_at", "2015-10-28 16:28:02.811330"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:28:02.823859"], ["updated_at", "2015-10-28 16:28:02.823859"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:28:02.825693"], ["updated_at", "2015-10-28 16:28:02.825693"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.827840"], ["updated_at", "2015-10-28 16:28:02.827840"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.828990"], ["updated_at", "2015-10-28 16:28:02.828990"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.833395"], ["updated_at", "2015-10-28 16:28:02.833395"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:28:02.834886"], ["updated_at", "2015-10-28 16:28:02.834886"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.836991"], ["updated_at", "2015-10-28 16:28:02.836991"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.838125"], ["updated_at", "2015-10-28 16:28:02.838125"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:28:02.839646"], ["updated_at", "2015-10-28 16:28:02.839646"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.840800"], ["updated_at", "2015-10-28 16:28:02.840800"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.842355"], ["updated_at", "2015-10-28 16:28:02.842355"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:28:02.845916"], ["updated_at", "2015-10-28 16:28:02.845916"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:28:02.847289"], ["updated_at", "2015-10-28 16:28:02.847289"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.849284"], ["updated_at", "2015-10-28 16:28:02.849284"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.850379"], ["updated_at", "2015-10-28 16:28:02.850379"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:28:02.851755"], ["updated_at", "2015-10-28 16:28:02.851755"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.854643"], ["updated_at", "2015-10-28 16:28:02.854643"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:28:02.856656"], ["updated_at", "2015-10-28 16:28:02.856656"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.861118"], ["updated_at", "2015-10-28 16:28:02.861118"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:28:02.862527"], ["updated_at", "2015-10-28 16:28:02.862527"]] [1m[35m (0.3ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.868777"], ["updated_at", "2015-10-28 16:28:02.868777"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.873076"], ["updated_at", "2015-10-28 16:28:02.873076"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:28:02.875866"], ["updated_at", "2015-10-28 16:28:02.875866"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.877198"], ["updated_at", "2015-10-28 16:28:02.877198"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.878515"], ["updated_at", "2015-10-28 16:28:02.878515"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:28:02.882183"], ["updated_at", "2015-10-28 16:28:02.882183"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:28:02.883591"], ["updated_at", "2015-10-28 16:28:02.883591"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.885582"], ["updated_at", "2015-10-28 16:28:02.885582"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.886741"], ["updated_at", "2015-10-28 16:28:02.886741"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.899721"], ["updated_at", "2015-10-28 16:28:02.899721"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (1.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:28:02.906855"], ["updated_at", "2015-10-28 16:28:02.906855"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:28:02.909682"], ["updated_at", "2015-10-28 16:28:02.909682"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:28:02.912484"], ["updated_at", "2015-10-28 16:28:02.912484"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:28:02.917885"], ["updated_at", "2015-10-28 16:28:02.917885"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:28:02.924378"], ["updated_at", "2015-10-28 16:28:02.924378"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (1.0ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:34:34.509666"], ["updated_at", "2015-10-28 16:34:34.509666"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:34:34.531224"], ["updated_at", "2015-10-28 16:34:34.531224"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.549387"], ["updated_at", "2015-10-28 16:34:34.549387"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.567622"], ["updated_at", "2015-10-28 16:34:34.567622"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.583468"], ["updated_at", "2015-10-28 16:34:34.583468"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.587982"], ["updated_at", "2015-10-28 16:34:34.587982"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:34:34.589651"], ["updated_at", "2015-10-28 16:34:34.589651"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.591903"], ["updated_at", "2015-10-28 16:34:34.591903"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.593160"], ["updated_at", "2015-10-28 16:34:34.593160"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.594967"], ["updated_at", "2015-10-28 16:34:34.594967"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.598325"], ["updated_at", "2015-10-28 16:34:34.598325"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:34:34.600012"], ["updated_at", "2015-10-28 16:34:34.600012"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.602218"], ["updated_at", "2015-10-28 16:34:34.602218"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.603387"], ["updated_at", "2015-10-28 16:34:34.603387"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.605222"], ["updated_at", "2015-10-28 16:34:34.605222"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 171.3ms Sent mail to user3@sleede.com (6.7ms) Date: Wed, 28 Oct 2015 17:34:34 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630f91abf3a5_177483ff3a5c601dc2076d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.788885"], ["updated_at", "2015-10-28 16:34:34.788885"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:34:34.790528"], ["updated_at", "2015-10-28 16:34:34.790528"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.792743"], ["updated_at", "2015-10-28 16:34:34.792743"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.794021"], ["updated_at", "2015-10-28 16:34:34.794021"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.795995"], ["updated_at", "2015-10-28 16:34:34.795995"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 42f7f9d1-4aea-4f8a-8629-e52802f87259) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] NotificationsMailer#send_mail_by: processed outbound mail in 10.5ms [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] Sent mail to user4@sleede.com (4.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] Date: Wed, 28 Oct 2015 17:34:34 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630f91acae5a_177483ff3a5c601dc20890@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[ActiveJob] [ActionMailer::DeliveryJob] [42f7f9d1-4aea-4f8a-8629-e52802f87259] Performed ActionMailer::DeliveryJob from Inline(mailers) in 15.14ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.835559"], ["updated_at", "2015-10-28 16:34:34.835559"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:34:34.838828"], ["updated_at", "2015-10-28 16:34:34.838828"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.845211"], ["updated_at", "2015-10-28 16:34:34.845211"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.848256"], ["updated_at", "2015-10-28 16:34:34.848256"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:34:34.853976"], ["updated_at", "2015-10-28 16:34:34.853976"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:34:34.855435"], ["updated_at", "2015-10-28 16:34:34.855435"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.857456"], ["updated_at", "2015-10-28 16:34:34.857456"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.858568"], ["updated_at", "2015-10-28 16:34:34.858568"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.862833"], ["updated_at", "2015-10-28 16:34:34.862833"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:34:34.864844"], ["updated_at", "2015-10-28 16:34:34.864844"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.867079"], ["updated_at", "2015-10-28 16:34:34.867079"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.868207"], ["updated_at", "2015-10-28 16:34:34.868207"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:34:34.869723"], ["updated_at", "2015-10-28 16:34:34.869723"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.870835"], ["updated_at", "2015-10-28 16:34:34.870835"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.872082"], ["updated_at", "2015-10-28 16:34:34.872082"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:34:34.877038"], ["updated_at", "2015-10-28 16:34:34.877038"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:34:34.878981"], ["updated_at", "2015-10-28 16:34:34.878981"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.882062"], ["updated_at", "2015-10-28 16:34:34.882062"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.883579"], ["updated_at", "2015-10-28 16:34:34.883579"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:34:34.885264"], ["updated_at", "2015-10-28 16:34:34.885264"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.888218"], ["updated_at", "2015-10-28 16:34:34.888218"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:34:34.892383"], ["updated_at", "2015-10-28 16:34:34.892383"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.899351"], ["updated_at", "2015-10-28 16:34:34.899351"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:34:34.900777"], ["updated_at", "2015-10-28 16:34:34.900777"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.902876"], ["updated_at", "2015-10-28 16:34:34.902876"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.904046"], ["updated_at", "2015-10-28 16:34:34.904046"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:34:34.905417"], ["updated_at", "2015-10-28 16:34:34.905417"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.906496"], ["updated_at", "2015-10-28 16:34:34.906496"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.907705"], ["updated_at", "2015-10-28 16:34:34.907705"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:34:34.911525"], ["updated_at", "2015-10-28 16:34:34.911525"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:34:34.913019"], ["updated_at", "2015-10-28 16:34:34.913019"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.915039"], ["updated_at", "2015-10-28 16:34:34.915039"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.916320"], ["updated_at", "2015-10-28 16:34:34.916320"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.929658"], ["updated_at", "2015-10-28 16:34:34.929658"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:34:34.933931"], ["updated_at", "2015-10-28 16:34:34.933931"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:34:34.935563"], ["updated_at", "2015-10-28 16:34:34.935563"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:34:34.943291"], ["updated_at", "2015-10-28 16:34:34.943291"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:34:34.947042"], ["updated_at", "2015-10-28 16:34:34.947042"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:34:34.949243"], ["updated_at", "2015-10-28 16:34:34.949243"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 1 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:35:35.770832"], ["updated_at", "2015-10-28 16:35:35.770832"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:35:35.791436"], ["updated_at", "2015-10-28 16:35:35.791436"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:35.807092"], ["updated_at", "2015-10-28 16:35:35.807092"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:35.825733"], ["updated_at", "2015-10-28 16:35:35.825733"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:35.843845"], ["updated_at", "2015-10-28 16:35:35.843845"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:35.848126"], ["updated_at", "2015-10-28 16:35:35.848126"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:35:35.849731"], ["updated_at", "2015-10-28 16:35:35.849731"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:35.852002"], ["updated_at", "2015-10-28 16:35:35.852002"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:35.853868"], ["updated_at", "2015-10-28 16:35:35.853868"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:35.856445"], ["updated_at", "2015-10-28 16:35:35.856445"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:35.861589"], ["updated_at", "2015-10-28 16:35:35.861589"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:35:35.863159"], ["updated_at", "2015-10-28 16:35:35.863159"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:35.865476"], ["updated_at", "2015-10-28 16:35:35.865476"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:35.866791"], ["updated_at", "2015-10-28 16:35:35.866791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:35.868802"], ["updated_at", "2015-10-28 16:35:35.868802"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (3.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 171.1ms Sent mail to user3@sleede.com (6.7ms) Date: Wed, 28 Oct 2015 17:35:36 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630f958b71f_1775a3fe379c601dc6563f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.052374"], ["updated_at", "2015-10-28 16:35:36.052374"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:35:36.054042"], ["updated_at", "2015-10-28 16:35:36.054042"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.056300"], ["updated_at", "2015-10-28 16:35:36.056300"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.057509"], ["updated_at", "2015-10-28 16:35:36.057509"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:36.059369"], ["updated_at", "2015-10-28 16:35:36.059369"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c462d123-853f-4c9f-8640-4db74b7f3af7) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] NotificationsMailer#send_mail_by: processed outbound mail in 5.3ms [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] Sent mail to user4@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] Date: Wed, 28 Oct 2015 17:35:36 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630f95814310_1775a3fe379c601dc6576f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[ActiveJob] [ActionMailer::DeliveryJob] [c462d123-853f-4c9f-8640-4db74b7f3af7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.87ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.085683"], ["updated_at", "2015-10-28 16:35:36.085683"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:35:36.089061"], ["updated_at", "2015-10-28 16:35:36.089061"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.092243"], ["updated_at", "2015-10-28 16:35:36.092243"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.094175"], ["updated_at", "2015-10-28 16:35:36.094175"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:35:36.099971"], ["updated_at", "2015-10-28 16:35:36.099971"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:35:36.101496"], ["updated_at", "2015-10-28 16:35:36.101496"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.103641"], ["updated_at", "2015-10-28 16:35:36.103641"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.105322"], ["updated_at", "2015-10-28 16:35:36.105322"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.115380"], ["updated_at", "2015-10-28 16:35:36.115380"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:35:36.117556"], ["updated_at", "2015-10-28 16:35:36.117556"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.119758"], ["updated_at", "2015-10-28 16:35:36.119758"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.120883"], ["updated_at", "2015-10-28 16:35:36.120883"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:35:36.122691"], ["updated_at", "2015-10-28 16:35:36.122691"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:36.124145"], ["updated_at", "2015-10-28 16:35:36.124145"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.125735"], ["updated_at", "2015-10-28 16:35:36.125735"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:35:36.129494"], ["updated_at", "2015-10-28 16:35:36.129494"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:35:36.131169"], ["updated_at", "2015-10-28 16:35:36.131169"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.133676"], ["updated_at", "2015-10-28 16:35:36.133676"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.135070"], ["updated_at", "2015-10-28 16:35:36.135070"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:35:36.136635"], ["updated_at", "2015-10-28 16:35:36.136635"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:36.137915"], ["updated_at", "2015-10-28 16:35:36.137915"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:35:36.139803"], ["updated_at", "2015-10-28 16:35:36.139803"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.144847"], ["updated_at", "2015-10-28 16:35:36.144847"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:35:36.146737"], ["updated_at", "2015-10-28 16:35:36.146737"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.149701"], ["updated_at", "2015-10-28 16:35:36.149701"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.151217"], ["updated_at", "2015-10-28 16:35:36.151217"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:35:36.152725"], ["updated_at", "2015-10-28 16:35:36.152725"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:36.154260"], ["updated_at", "2015-10-28 16:35:36.154260"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.157614"], ["updated_at", "2015-10-28 16:35:36.157614"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:35:36.166651"], ["updated_at", "2015-10-28 16:35:36.166651"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:35:36.168148"], ["updated_at", "2015-10-28 16:35:36.168148"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.170196"], ["updated_at", "2015-10-28 16:35:36.170196"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.171317"], ["updated_at", "2015-10-28 16:35:36.171317"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:36.182300"], ["updated_at", "2015-10-28 16:35:36.182300"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:35:36.185787"], ["updated_at", "2015-10-28 16:35:36.185787"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:35:36.187237"], ["updated_at", "2015-10-28 16:35:36.187237"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:35:36.189176"], ["updated_at", "2015-10-28 16:35:36.189176"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:35:36.190251"], ["updated_at", "2015-10-28 16:35:36.190251"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:35:36.191594"], ["updated_at", "2015-10-28 16:35:36.191594"]] [1m[36m (0.0ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:35:36.192678"], ["updated_at", "2015-10-28 16:35:36.192678"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:35:36.195613"], ["updated_at", "2015-10-28 16:35:36.195613"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:35:36.198277"], ["updated_at", "2015-10-28 16:35:36.198277"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:07.596653"], ["updated_at", "2015-10-28 16:39:07.596653"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:39:07.618226"], ["updated_at", "2015-10-28 16:39:07.618226"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.633764"], ["updated_at", "2015-10-28 16:39:07.633764"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.653978"], ["updated_at", "2015-10-28 16:39:07.653978"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.669940"], ["updated_at", "2015-10-28 16:39:07.669940"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.673950"], ["updated_at", "2015-10-28 16:39:07.673950"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:39:07.675481"], ["updated_at", "2015-10-28 16:39:07.675481"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.677666"], ["updated_at", "2015-10-28 16:39:07.677666"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.678945"], ["updated_at", "2015-10-28 16:39:07.678945"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:39:07.680569"], ["updated_at", "2015-10-28 16:39:07.680569"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.681708"], ["updated_at", "2015-10-28 16:39:07.681708"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.683261"], ["updated_at", "2015-10-28 16:39:07.683261"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:07.685031"], ["updated_at", "2015-10-28 16:39:07.685031"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.688443"], ["updated_at", "2015-10-28 16:39:07.688443"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:39:07.690078"], ["updated_at", "2015-10-28 16:39:07.690078"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.692616"], ["updated_at", "2015-10-28 16:39:07.692616"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.694028"], ["updated_at", "2015-10-28 16:39:07.694028"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:39:07.695573"], ["updated_at", "2015-10-28 16:39:07.695573"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.696844"], ["updated_at", "2015-10-28 16:39:07.696844"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.698535"], ["updated_at", "2015-10-28 16:39:07.698535"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:07.700331"], ["updated_at", "2015-10-28 16:39:07.700331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.703510"], ["updated_at", "2015-10-28 16:39:07.703510"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:39:07.704961"], ["updated_at", "2015-10-28 16:39:07.704961"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.707058"], ["updated_at", "2015-10-28 16:39:07.707058"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.709869"], ["updated_at", "2015-10-28 16:39:07.709869"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.712939"], ["updated_at", "2015-10-28 16:39:07.712939"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) NotificationsMailer#send_mail_by: processed outbound mail in 166.7ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:07.885208"], ["updated_at", "2015-10-28 16:39:07.885208"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:39:07.886960"], ["updated_at", "2015-10-28 16:39:07.886960"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.889322"], ["updated_at", "2015-10-28 16:39:07.889322"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.890564"], ["updated_at", "2015-10-28 16:39:07.890564"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.892396"], ["updated_at", "2015-10-28 16:39:07.892396"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e6a52b5a-1907-4931-b4fd-dcb9d27076ec) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] NotificationsMailer#send_mail_by: processed outbound mail in 7.6ms [ActiveJob] [ActionMailer::DeliveryJob] [e6a52b5a-1907-4931-b4fd-dcb9d27076ec] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.08ms [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.923800"], ["updated_at", "2015-10-28 16:39:07.923800"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:39:07.925874"], ["updated_at", "2015-10-28 16:39:07.925874"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.928760"], ["updated_at", "2015-10-28 16:39:07.928760"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.930045"], ["updated_at", "2015-10-28 16:39:07.930045"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:07.937916"], ["updated_at", "2015-10-28 16:39:07.937916"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:39:07.941566"], ["updated_at", "2015-10-28 16:39:07.941566"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.946437"], ["updated_at", "2015-10-28 16:39:07.946437"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.947778"], ["updated_at", "2015-10-28 16:39:07.947778"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.951789"], ["updated_at", "2015-10-28 16:39:07.951789"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:39:07.953287"], ["updated_at", "2015-10-28 16:39:07.953287"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.955269"], ["updated_at", "2015-10-28 16:39:07.955269"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.956366"], ["updated_at", "2015-10-28 16:39:07.956366"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:39:07.957723"], ["updated_at", "2015-10-28 16:39:07.957723"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.958884"], ["updated_at", "2015-10-28 16:39:07.958884"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.960115"], ["updated_at", "2015-10-28 16:39:07.960115"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:07.963835"], ["updated_at", "2015-10-28 16:39:07.963835"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:39:07.965225"], ["updated_at", "2015-10-28 16:39:07.965225"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.967214"], ["updated_at", "2015-10-28 16:39:07.967214"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.968310"], ["updated_at", "2015-10-28 16:39:07.968310"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:39:07.969633"], ["updated_at", "2015-10-28 16:39:07.969633"]] [1m[36m (0.0ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.970699"], ["updated_at", "2015-10-28 16:39:07.970699"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:07.971885"], ["updated_at", "2015-10-28 16:39:07.971885"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.977269"], ["updated_at", "2015-10-28 16:39:07.977269"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:39:07.979180"], ["updated_at", "2015-10-28 16:39:07.979180"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:07.982188"], ["updated_at", "2015-10-28 16:39:07.982188"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:07.983488"], ["updated_at", "2015-10-28 16:39:07.983488"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:39:07.986940"], ["updated_at", "2015-10-28 16:39:07.986940"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:07.990653"], ["updated_at", "2015-10-28 16:39:07.990653"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.993944"], ["updated_at", "2015-10-28 16:39:07.993944"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:07.998353"], ["updated_at", "2015-10-28 16:39:07.998353"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:39:07.999836"], ["updated_at", "2015-10-28 16:39:07.999836"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:08.001886"], ["updated_at", "2015-10-28 16:39:08.001886"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:08.003003"], ["updated_at", "2015-10-28 16:39:08.003003"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:08.015996"], ["updated_at", "2015-10-28 16:39:08.015996"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:08.019722"], ["updated_at", "2015-10-28 16:39:08.019722"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:39:08.021277"], ["updated_at", "2015-10-28 16:39:08.021277"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:08.025252"], ["updated_at", "2015-10-28 16:39:08.025252"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:08.026982"], ["updated_at", "2015-10-28 16:39:08.026982"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 16:39:08.029300"], ["updated_at", "2015-10-28 16:39:08.029300"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:08.031319"], ["updated_at", "2015-10-28 16:39:08.031319"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:08.032779"], ["updated_at", "2015-10-28 16:39:08.032779"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:08.036055"], ["updated_at", "2015-10-28 16:39:08.036055"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (1.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:45.178191"], ["updated_at", "2015-10-28 16:39:45.178191"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:39:45.202034"], ["updated_at", "2015-10-28 16:39:45.202034"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.215242"], ["updated_at", "2015-10-28 16:39:45.215242"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.232308"], ["updated_at", "2015-10-28 16:39:45.232308"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.244832"], ["updated_at", "2015-10-28 16:39:45.244832"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.257397"], ["updated_at", "2015-10-28 16:39:45.257397"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:39:45.260115"], ["updated_at", "2015-10-28 16:39:45.260115"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.262847"], ["updated_at", "2015-10-28 16:39:45.262847"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.264187"], ["updated_at", "2015-10-28 16:39:45.264187"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:39:45.266057"], ["updated_at", "2015-10-28 16:39:45.266057"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.267421"], ["updated_at", "2015-10-28 16:39:45.267421"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.268830"], ["updated_at", "2015-10-28 16:39:45.268830"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:45.270868"], ["updated_at", "2015-10-28 16:39:45.270868"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.274158"], ["updated_at", "2015-10-28 16:39:45.274158"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:39:45.275685"], ["updated_at", "2015-10-28 16:39:45.275685"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.277826"], ["updated_at", "2015-10-28 16:39:45.277826"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.278948"], ["updated_at", "2015-10-28 16:39:45.278948"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:39:45.280434"], ["updated_at", "2015-10-28 16:39:45.280434"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.281621"], ["updated_at", "2015-10-28 16:39:45.281621"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.282940"], ["updated_at", "2015-10-28 16:39:45.282940"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:45.284983"], ["updated_at", "2015-10-28 16:39:45.284983"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.288243"], ["updated_at", "2015-10-28 16:39:45.288243"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:39:45.289738"], ["updated_at", "2015-10-28 16:39:45.289738"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.293694"], ["updated_at", "2015-10-28 16:39:45.293694"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.295251"], ["updated_at", "2015-10-28 16:39:45.295251"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.297592"], ["updated_at", "2015-10-28 16:39:45.297592"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 132.8ms Sent mail to user6@sleede.com (16.1ms) Date: Wed, 28 Oct 2015 17:39:45 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630fa516d018_177953fdd058601d88354b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.452507"], ["updated_at", "2015-10-28 16:39:45.452507"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:39:45.454211"], ["updated_at", "2015-10-28 16:39:45.454211"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.456547"], ["updated_at", "2015-10-28 16:39:45.456547"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.457833"], ["updated_at", "2015-10-28 16:39:45.457833"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.459669"], ["updated_at", "2015-10-28 16:39:45.459669"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ec72b3cf-abda-4583-9799-5a5368fa910e) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] NotificationsMailer#send_mail_by: processed outbound mail in 5.5ms [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] Sent mail to user7@sleede.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] Date: Wed, 28 Oct 2015 17:39:45 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630fa5174c4d_177953fdd058601d8836f5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [ec72b3cf-abda-4583-9799-5a5368fa910e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.78ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.481745"], ["updated_at", "2015-10-28 16:39:45.481745"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:39:45.483351"], ["updated_at", "2015-10-28 16:39:45.483351"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.486396"], ["updated_at", "2015-10-28 16:39:45.486396"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.488596"], ["updated_at", "2015-10-28 16:39:45.488596"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:45.494686"], ["updated_at", "2015-10-28 16:39:45.494686"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:39:45.496544"], ["updated_at", "2015-10-28 16:39:45.496544"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.498786"], ["updated_at", "2015-10-28 16:39:45.498786"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.499912"], ["updated_at", "2015-10-28 16:39:45.499912"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.505230"], ["updated_at", "2015-10-28 16:39:45.505230"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:39:45.509186"], ["updated_at", "2015-10-28 16:39:45.509186"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.514107"], ["updated_at", "2015-10-28 16:39:45.514107"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.516056"], ["updated_at", "2015-10-28 16:39:45.516056"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:39:45.517754"], ["updated_at", "2015-10-28 16:39:45.517754"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.519203"], ["updated_at", "2015-10-28 16:39:45.519203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.520533"], ["updated_at", "2015-10-28 16:39:45.520533"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:45.524058"], ["updated_at", "2015-10-28 16:39:45.524058"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:39:45.525512"], ["updated_at", "2015-10-28 16:39:45.525512"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.527566"], ["updated_at", "2015-10-28 16:39:45.527566"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.528695"], ["updated_at", "2015-10-28 16:39:45.528695"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:39:45.530013"], ["updated_at", "2015-10-28 16:39:45.530013"]] [1m[36m (0.0ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.531061"], ["updated_at", "2015-10-28 16:39:45.531061"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:45.532245"], ["updated_at", "2015-10-28 16:39:45.532245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.536087"], ["updated_at", "2015-10-28 16:39:45.536087"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:39:45.537464"], ["updated_at", "2015-10-28 16:39:45.537464"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.539459"], ["updated_at", "2015-10-28 16:39:45.539459"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.540540"], ["updated_at", "2015-10-28 16:39:45.540540"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:39:45.542032"], ["updated_at", "2015-10-28 16:39:45.542032"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.544841"], ["updated_at", "2015-10-28 16:39:45.544841"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.546979"], ["updated_at", "2015-10-28 16:39:45.546979"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:45.551129"], ["updated_at", "2015-10-28 16:39:45.551129"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:39:45.552920"], ["updated_at", "2015-10-28 16:39:45.552920"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.556351"], ["updated_at", "2015-10-28 16:39:45.556351"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.560734"], ["updated_at", "2015-10-28 16:39:45.560734"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.572040"], ["updated_at", "2015-10-28 16:39:45.572040"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:45.575460"], ["updated_at", "2015-10-28 16:39:45.575460"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:39:45.576942"], ["updated_at", "2015-10-28 16:39:45.576942"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:45.579055"], ["updated_at", "2015-10-28 16:39:45.579055"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:45.580207"], ["updated_at", "2015-10-28 16:39:45.580207"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 16:39:45.581571"], ["updated_at", "2015-10-28 16:39:45.581571"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:45.582630"], ["updated_at", "2015-10-28 16:39:45.582630"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:45.583831"], ["updated_at", "2015-10-28 16:39:45.583831"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:45.585811"], ["updated_at", "2015-10-28 16:39:45.585811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.6ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:59.115788"], ["updated_at", "2015-10-28 16:39:59.115788"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:39:59.137280"], ["updated_at", "2015-10-28 16:39:59.137280"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.150573"], ["updated_at", "2015-10-28 16:39:59.150573"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.161715"], ["updated_at", "2015-10-28 16:39:59.161715"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.180800"], ["updated_at", "2015-10-28 16:39:59.180800"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (9.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.193538"], ["updated_at", "2015-10-28 16:39:59.193538"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:39:59.196033"], ["updated_at", "2015-10-28 16:39:59.196033"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.198580"], ["updated_at", "2015-10-28 16:39:59.198580"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.199990"], ["updated_at", "2015-10-28 16:39:59.199990"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:39:59.201889"], ["updated_at", "2015-10-28 16:39:59.201889"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.203178"], ["updated_at", "2015-10-28 16:39:59.203178"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.204638"], ["updated_at", "2015-10-28 16:39:59.204638"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:59.206649"], ["updated_at", "2015-10-28 16:39:59.206649"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.210500"], ["updated_at", "2015-10-28 16:39:59.210500"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:39:59.212147"], ["updated_at", "2015-10-28 16:39:59.212147"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.214335"], ["updated_at", "2015-10-28 16:39:59.214335"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.215488"], ["updated_at", "2015-10-28 16:39:59.215488"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:39:59.216910"], ["updated_at", "2015-10-28 16:39:59.216910"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.218124"], ["updated_at", "2015-10-28 16:39:59.218124"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.219728"], ["updated_at", "2015-10-28 16:39:59.219728"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:59.221552"], ["updated_at", "2015-10-28 16:39:59.221552"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.224710"], ["updated_at", "2015-10-28 16:39:59.224710"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:39:59.226206"], ["updated_at", "2015-10-28 16:39:59.226206"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.230476"], ["updated_at", "2015-10-28 16:39:59.230476"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.232531"], ["updated_at", "2015-10-28 16:39:59.232531"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.235403"], ["updated_at", "2015-10-28 16:39:59.235403"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 129.6ms Sent mail to user6@sleede.com (4.2ms) Date: Wed, 28 Oct 2015 17:39:59 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630fa5f5a588_1779a3fd4d04601d8429d7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (8.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.382864"], ["updated_at", "2015-10-28 16:39:59.382864"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:39:59.385233"], ["updated_at", "2015-10-28 16:39:59.385233"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.387796"], ["updated_at", "2015-10-28 16:39:59.387796"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.389202"], ["updated_at", "2015-10-28 16:39:59.389202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.391321"], ["updated_at", "2015-10-28 16:39:59.391321"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fd375791-6228-423e-98a1-218f912b7b43) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] NotificationsMailer#send_mail_by: processed outbound mail in 4.5ms [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] Sent mail to user7@sleede.com (1.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] Date: Wed, 28 Oct 2015 17:39:59 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630fa5f63cd6_1779a3fd4d04601d843013@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [fd375791-6228-423e-98a1-218f912b7b43] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.05ms [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.411747"], ["updated_at", "2015-10-28 16:39:59.411747"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:39:59.413262"], ["updated_at", "2015-10-28 16:39:59.413262"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.415316"], ["updated_at", "2015-10-28 16:39:59.415316"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.418058"], ["updated_at", "2015-10-28 16:39:59.418058"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:59.424339"], ["updated_at", "2015-10-28 16:39:59.424339"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:39:59.425870"], ["updated_at", "2015-10-28 16:39:59.425870"]] [1m[36m (0.3ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.431793"], ["updated_at", "2015-10-28 16:39:59.431793"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.436233"], ["updated_at", "2015-10-28 16:39:59.436233"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.441716"], ["updated_at", "2015-10-28 16:39:59.441716"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:39:59.443418"], ["updated_at", "2015-10-28 16:39:59.443418"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.445492"], ["updated_at", "2015-10-28 16:39:59.445492"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.446598"], ["updated_at", "2015-10-28 16:39:59.446598"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:39:59.447912"], ["updated_at", "2015-10-28 16:39:59.447912"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.448964"], ["updated_at", "2015-10-28 16:39:59.448964"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.450167"], ["updated_at", "2015-10-28 16:39:59.450167"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:59.454063"], ["updated_at", "2015-10-28 16:39:59.454063"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:39:59.455490"], ["updated_at", "2015-10-28 16:39:59.455490"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.457564"], ["updated_at", "2015-10-28 16:39:59.457564"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.458732"], ["updated_at", "2015-10-28 16:39:59.458732"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:39:59.460687"], ["updated_at", "2015-10-28 16:39:59.460687"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.462666"], ["updated_at", "2015-10-28 16:39:59.462666"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:59.464531"], ["updated_at", "2015-10-28 16:39:59.464531"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.469841"], ["updated_at", "2015-10-28 16:39:59.469841"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:39:59.471831"], ["updated_at", "2015-10-28 16:39:59.471831"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.474935"], ["updated_at", "2015-10-28 16:39:59.474935"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.476328"], ["updated_at", "2015-10-28 16:39:59.476328"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:39:59.481439"], ["updated_at", "2015-10-28 16:39:59.481439"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.485637"], ["updated_at", "2015-10-28 16:39:59.485637"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.488439"], ["updated_at", "2015-10-28 16:39:59.488439"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:39:59.492338"], ["updated_at", "2015-10-28 16:39:59.492338"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:39:59.493835"], ["updated_at", "2015-10-28 16:39:59.493835"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.495980"], ["updated_at", "2015-10-28 16:39:59.495980"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.497116"], ["updated_at", "2015-10-28 16:39:59.497116"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.505486"], ["updated_at", "2015-10-28 16:39:59.505486"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:59.509018"], ["updated_at", "2015-10-28 16:39:59.509018"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:39:59.510574"], ["updated_at", "2015-10-28 16:39:59.510574"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:39:59.513168"], ["updated_at", "2015-10-28 16:39:59.513168"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:39:59.515874"], ["updated_at", "2015-10-28 16:39:59.515874"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 16:39:59.517962"], ["updated_at", "2015-10-28 16:39:59.517962"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:39:59.520357"], ["updated_at", "2015-10-28 16:39:59.520357"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:39:59.522174"], ["updated_at", "2015-10-28 16:39:59.522174"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:39:59.523928"], ["updated_at", "2015-10-28 16:39:59.523928"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (1.2ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_send" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.509412"], ["updated_at", "2015-10-28 16:41:45.509412"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:41:45.529524"], ["updated_at", "2015-10-28 16:41:45.529524"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.543595"], ["updated_at", "2015-10-28 16:41:45.543595"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.561906"], ["updated_at", "2015-10-28 16:41:45.561906"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.577153"], ["updated_at", "2015-10-28 16:41:45.577153"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.581376"], ["updated_at", "2015-10-28 16:41:45.581376"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:41:45.582895"], ["updated_at", "2015-10-28 16:41:45.582895"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.585040"], ["updated_at", "2015-10-28 16:41:45.585040"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.586281"], ["updated_at", "2015-10-28 16:41:45.586281"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:41:45.587879"], ["updated_at", "2015-10-28 16:41:45.587879"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.589011"], ["updated_at", "2015-10-28 16:41:45.589011"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.590370"], ["updated_at", "2015-10-28 16:41:45.590370"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:41:45.592428"], ["updated_at", "2015-10-28 16:41:45.592428"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.596007"], ["updated_at", "2015-10-28 16:41:45.596007"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:41:45.597641"], ["updated_at", "2015-10-28 16:41:45.597641"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.600067"], ["updated_at", "2015-10-28 16:41:45.600067"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.601391"], ["updated_at", "2015-10-28 16:41:45.601391"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:41:45.602974"], ["updated_at", "2015-10-28 16:41:45.602974"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.604277"], ["updated_at", "2015-10-28 16:41:45.604277"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.605954"], ["updated_at", "2015-10-28 16:41:45.605954"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:41:45.607896"], ["updated_at", "2015-10-28 16:41:45.607896"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.610998"], ["updated_at", "2015-10-28 16:41:45.610998"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:41:45.612531"], ["updated_at", "2015-10-28 16:41:45.612531"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.614724"], ["updated_at", "2015-10-28 16:41:45.614724"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.617442"], ["updated_at", "2015-10-28 16:41:45.617442"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.620563"], ["updated_at", "2015-10-28 16:41:45.620563"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 171.5ms Sent mail to user6@sleede.com (6.4ms) Date: Wed, 28 Oct 2015 17:41:45 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630fac9c3382_177f23fce544601d855431@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.804944"], ["updated_at", "2015-10-28 16:41:45.804944"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:41:45.806544"], ["updated_at", "2015-10-28 16:41:45.806544"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.808726"], ["updated_at", "2015-10-28 16:41:45.808726"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.809937"], ["updated_at", "2015-10-28 16:41:45.809937"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.811769"], ["updated_at", "2015-10-28 16:41:45.811769"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1888605b-a0e0-4b19-8bb0-7c2d9f23a763) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_send" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] NotificationsMailer#send_mail_by: processed outbound mail in 5.9ms [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] Sent mail to user7@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] Date: Wed, 28 Oct 2015 17:41:45 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630fac9cc797_177f23fce544601d8555e2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [1888605b-a0e0-4b19-8bb0-7c2d9f23a763] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.68ms [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.841738"], ["updated_at", "2015-10-28 16:41:45.841738"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:41:45.843765"], ["updated_at", "2015-10-28 16:41:45.843765"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.846884"], ["updated_at", "2015-10-28 16:41:45.846884"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.848359"], ["updated_at", "2015-10-28 16:41:45.848359"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.861040"], ["updated_at", "2015-10-28 16:41:45.861040"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:41:45.863439"], ["updated_at", "2015-10-28 16:41:45.863439"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.865752"], ["updated_at", "2015-10-28 16:41:45.865752"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.866949"], ["updated_at", "2015-10-28 16:41:45.866949"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.871527"], ["updated_at", "2015-10-28 16:41:45.871527"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:41:45.873022"], ["updated_at", "2015-10-28 16:41:45.873022"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.875041"], ["updated_at", "2015-10-28 16:41:45.875041"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.876170"], ["updated_at", "2015-10-28 16:41:45.876170"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:41:45.877547"], ["updated_at", "2015-10-28 16:41:45.877547"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.878684"], ["updated_at", "2015-10-28 16:41:45.878684"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.879978"], ["updated_at", "2015-10-28 16:41:45.879978"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.883864"], ["updated_at", "2015-10-28 16:41:45.883864"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:41:45.885358"], ["updated_at", "2015-10-28 16:41:45.885358"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.887450"], ["updated_at", "2015-10-28 16:41:45.887450"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.888676"], ["updated_at", "2015-10-28 16:41:45.888676"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:41:45.891836"], ["updated_at", "2015-10-28 16:41:45.891836"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.893709"], ["updated_at", "2015-10-28 16:41:45.893709"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.897396"], ["updated_at", "2015-10-28 16:41:45.897396"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.905450"], ["updated_at", "2015-10-28 16:41:45.905450"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:41:45.908356"], ["updated_at", "2015-10-28 16:41:45.908356"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.912211"], ["updated_at", "2015-10-28 16:41:45.912211"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.914196"], ["updated_at", "2015-10-28 16:41:45.914196"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:41:45.915961"], ["updated_at", "2015-10-28 16:41:45.915961"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.917209"], ["updated_at", "2015-10-28 16:41:45.917209"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.918618"], ["updated_at", "2015-10-28 16:41:45.918618"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.922177"], ["updated_at", "2015-10-28 16:41:45.922177"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:41:45.923586"], ["updated_at", "2015-10-28 16:41:45.923586"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.925582"], ["updated_at", "2015-10-28 16:41:45.925582"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.926691"], ["updated_at", "2015-10-28 16:41:45.926691"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:41:45.928079"], ["updated_at", "2015-10-28 16:41:45.928079"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.929377"], ["updated_at", "2015-10-28 16:41:45.929377"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.930644"], ["updated_at", "2015-10-28 16:41:45.930644"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:41:45.932663"], ["updated_at", "2015-10-28 16:41:45.932663"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.936659"], ["updated_at", "2015-10-28 16:41:45.936659"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 16:41:45.938536"], ["updated_at", "2015-10-28 16:41:45.938536"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.942399"], ["updated_at", "2015-10-28 16:41:45.942399"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.944113"], ["updated_at", "2015-10-28 16:41:45.944113"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 16:41:45.946581"], ["updated_at", "2015-10-28 16:41:45.946581"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.948104"], ["updated_at", "2015-10-28 16:41:45.948104"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.950442"], ["updated_at", "2015-10-28 16:41:45.950442"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:41:45.956171"], ["updated_at", "2015-10-28 16:41:45.956171"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:41:45.961861"], ["updated_at", "2015-10-28 16:41:45.961861"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 16:41:45.963693"], ["updated_at", "2015-10-28 16:41:45.963693"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.966040"], ["updated_at", "2015-10-28 16:41:45.966040"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.967277"], ["updated_at", "2015-10-28 16:41:45.967277"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.980951"], ["updated_at", "2015-10-28 16:41:45.980951"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.984739"], ["updated_at", "2015-10-28 16:41:45.984739"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 16:41:45.986315"], ["updated_at", "2015-10-28 16:41:45.986315"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:41:45.988481"], ["updated_at", "2015-10-28 16:41:45.988481"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:41:45.989639"], ["updated_at", "2015-10-28 16:41:45.989639"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 16:41:45.990975"], ["updated_at", "2015-10-28 16:41:45.990975"]] [1m[36m (0.0ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:41:45.992028"], ["updated_at", "2015-10-28 16:41:45.992028"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:41:45.993218"], ["updated_at", "2015-10-28 16:41:45.993218"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:41:45.997001"], ["updated_at", "2015-10-28 16:41:45.997001"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.5ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:18.711499"], ["updated_at", "2015-10-28 16:42:18.711499"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:42:18.731779"], ["updated_at", "2015-10-28 16:42:18.731779"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:18.747475"], ["updated_at", "2015-10-28 16:42:18.747475"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:18.767472"], ["updated_at", "2015-10-28 16:42:18.767472"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:18.782348"], ["updated_at", "2015-10-28 16:42:18.782348"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:18.786530"], ["updated_at", "2015-10-28 16:42:18.786530"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:42:18.788260"], ["updated_at", "2015-10-28 16:42:18.788260"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:18.790588"], ["updated_at", "2015-10-28 16:42:18.790588"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:18.791909"], ["updated_at", "2015-10-28 16:42:18.791909"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:42:18.793557"], ["updated_at", "2015-10-28 16:42:18.793557"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:18.794747"], ["updated_at", "2015-10-28 16:42:18.794747"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:18.796422"], ["updated_at", "2015-10-28 16:42:18.796422"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:42:18.798306"], ["updated_at", "2015-10-28 16:42:18.798306"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:18.801820"], ["updated_at", "2015-10-28 16:42:18.801820"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:42:18.803477"], ["updated_at", "2015-10-28 16:42:18.803477"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:18.805755"], ["updated_at", "2015-10-28 16:42:18.805755"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:18.806956"], ["updated_at", "2015-10-28 16:42:18.806956"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:42:18.808428"], ["updated_at", "2015-10-28 16:42:18.808428"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:18.809666"], ["updated_at", "2015-10-28 16:42:18.809666"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:18.811214"], ["updated_at", "2015-10-28 16:42:18.811214"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:42:18.813174"], ["updated_at", "2015-10-28 16:42:18.813174"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:18.816499"], ["updated_at", "2015-10-28 16:42:18.816499"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:42:18.818086"], ["updated_at", "2015-10-28 16:42:18.818086"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:18.820561"], ["updated_at", "2015-10-28 16:42:18.820561"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:18.823766"], ["updated_at", "2015-10-28 16:42:18.823766"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:18.827089"], ["updated_at", "2015-10-28 16:42:18.827089"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 165.3ms Sent mail to user6@sleede.com (7.0ms) Date: Wed, 28 Oct 2015 17:42:19 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630faeb186_177fe3fdd1a0601d0797d7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.005990"], ["updated_at", "2015-10-28 16:42:19.005990"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:42:19.007786"], ["updated_at", "2015-10-28 16:42:19.007786"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.010212"], ["updated_at", "2015-10-28 16:42:19.010212"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.011501"], ["updated_at", "2015-10-28 16:42:19.011501"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.014512"], ["updated_at", "2015-10-28 16:42:19.014512"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 32d4f411-3eaa-4b56-a6d7-30043c024f64) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] NotificationsMailer#send_mail_by: processed outbound mail in 8.6ms [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] Sent mail to user7@sleede.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] Date: Wed, 28 Oct 2015 17:42:19 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630faebafe2_177fe3fdd1a0601d0798eb@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[ActiveJob] [ActionMailer::DeliveryJob] [32d4f411-3eaa-4b56-a6d7-30043c024f64] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.92ms [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.049154"], ["updated_at", "2015-10-28 16:42:19.049154"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-28 16:42:19.050900"], ["updated_at", "2015-10-28 16:42:19.050900"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.055482"], ["updated_at", "2015-10-28 16:42:19.055482"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.060539"], ["updated_at", "2015-10-28 16:42:19.060539"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:19.069322"], ["updated_at", "2015-10-28 16:42:19.069322"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-28 16:42:19.071025"], ["updated_at", "2015-10-28 16:42:19.071025"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.073422"], ["updated_at", "2015-10-28 16:42:19.073422"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.074647"], ["updated_at", "2015-10-28 16:42:19.074647"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.079434"], ["updated_at", "2015-10-28 16:42:19.079434"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-28 16:42:19.081253"], ["updated_at", "2015-10-28 16:42:19.081253"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.083586"], ["updated_at", "2015-10-28 16:42:19.083586"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.084795"], ["updated_at", "2015-10-28 16:42:19.084795"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-28 16:42:19.086204"], ["updated_at", "2015-10-28 16:42:19.086204"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.087429"], ["updated_at", "2015-10-28 16:42:19.087429"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.089287"], ["updated_at", "2015-10-28 16:42:19.089287"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:19.094428"], ["updated_at", "2015-10-28 16:42:19.094428"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-28 16:42:19.096810"], ["updated_at", "2015-10-28 16:42:19.096810"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.100143"], ["updated_at", "2015-10-28 16:42:19.100143"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.101462"], ["updated_at", "2015-10-28 16:42:19.101462"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-28 16:42:19.103312"], ["updated_at", "2015-10-28 16:42:19.103312"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.106037"], ["updated_at", "2015-10-28 16:42:19.106037"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:19.109966"], ["updated_at", "2015-10-28 16:42:19.109966"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.117425"], ["updated_at", "2015-10-28 16:42:19.117425"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-28 16:42:19.119136"], ["updated_at", "2015-10-28 16:42:19.119136"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.121445"], ["updated_at", "2015-10-28 16:42:19.121445"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.122674"], ["updated_at", "2015-10-28 16:42:19.122674"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-28 16:42:19.124088"], ["updated_at", "2015-10-28 16:42:19.124088"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.125209"], ["updated_at", "2015-10-28 16:42:19.125209"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.127145"], ["updated_at", "2015-10-28 16:42:19.127145"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.130785"], ["updated_at", "2015-10-28 16:42:19.130785"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-28 16:42:19.132410"], ["updated_at", "2015-10-28 16:42:19.132410"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.134973"], ["updated_at", "2015-10-28 16:42:19.134973"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.136523"], ["updated_at", "2015-10-28 16:42:19.136523"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-28 16:42:19.138283"], ["updated_at", "2015-10-28 16:42:19.138283"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.139669"], ["updated_at", "2015-10-28 16:42:19.139669"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.141499"], ["updated_at", "2015-10-28 16:42:19.141499"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:42:19.145807"], ["updated_at", "2015-10-28 16:42:19.145807"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:19.150723"], ["updated_at", "2015-10-28 16:42:19.150723"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-28 16:42:19.152389"], ["updated_at", "2015-10-28 16:42:19.152389"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.156469"], ["updated_at", "2015-10-28 16:42:19.156469"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.160681"], ["updated_at", "2015-10-28 16:42:19.160681"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-28 16:42:19.164924"], ["updated_at", "2015-10-28 16:42:19.164924"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.167195"], ["updated_at", "2015-10-28 16:42:19.167195"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:19.168799"], ["updated_at", "2015-10-28 16:42:19.168799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:42:19.170771"], ["updated_at", "2015-10-28 16:42:19.170771"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:42:19.174022"], ["updated_at", "2015-10-28 16:42:19.174022"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-28 16:42:19.175625"], ["updated_at", "2015-10-28 16:42:19.175625"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.177825"], ["updated_at", "2015-10-28 16:42:19.177825"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.179018"], ["updated_at", "2015-10-28 16:42:19.179018"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.193843"], ["updated_at", "2015-10-28 16:42:19.193843"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:19.199390"], ["updated_at", "2015-10-28 16:42:19.199390"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-28 16:42:19.201344"], ["updated_at", "2015-10-28 16:42:19.201344"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:42:19.203429"], ["updated_at", "2015-10-28 16:42:19.203429"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:42:19.204826"], ["updated_at", "2015-10-28 16:42:19.204826"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-28 16:42:19.209685"], ["updated_at", "2015-10-28 16:42:19.209685"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-28 16:42:19.214191"], ["updated_at", "2015-10-28 16:42:19.214191"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:42:19.217492"], ["updated_at", "2015-10-28 16:42:19.217492"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:42:19.219555"], ["updated_at", "2015-10-28 16:42:19.219555"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.6ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (1.0ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:57:46.503600"], ["updated_at", "2015-10-28 16:57:46.503600"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:57:46.518066"], ["updated_at", "2015-10-28 16:57:46.518066"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.533162"], ["updated_at", "2015-10-28 16:57:46.533162"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:57:46.540660"], ["updated_at", "2015-10-28 16:57:46.540660"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:57:46.544899"], ["updated_at", "2015-10-28 16:57:46.544899"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:57:46.552187"], ["updated_at", "2015-10-28 16:57:46.552187"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:57:46.554222"], ["updated_at", "2015-10-28 16:57:46.554222"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.556483"], ["updated_at", "2015-10-28 16:57:46.556483"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:57:46.558117"], ["updated_at", "2015-10-28 16:57:46.558117"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:57:46.560855"], ["updated_at", "2015-10-28 16:57:46.560855"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:57:46.565167"], ["updated_at", "2015-10-28 16:57:46.565167"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:57:46.567109"], ["updated_at", "2015-10-28 16:57:46.567109"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.569497"], ["updated_at", "2015-10-28 16:57:46.569497"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:57:46.571452"], ["updated_at", "2015-10-28 16:57:46.571452"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:57:46.573605"], ["updated_at", "2015-10-28 16:57:46.573605"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (2.6ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 27.1ms Sent mail to user3@sleede.com (9.9ms) Date: Wed, 28 Oct 2015 17:57:46 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630fe8a9506a_178bf3fc3254601e023212@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:57:46.639275"], ["updated_at", "2015-10-28 16:57:46.639275"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:57:46.641353"], ["updated_at", "2015-10-28 16:57:46.641353"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.643451"], ["updated_at", "2015-10-28 16:57:46.643451"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:57:46.644698"], ["updated_at", "2015-10-28 16:57:46.644698"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:57:46.646378"], ["updated_at", "2015-10-28 16:57:46.646378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 17:57:46 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630fe8a9e9f9_178bf3fc3254601e023389@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:57:46.653322"], ["updated_at", "2015-10-28 16:57:46.653322"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:57:46.655282"], ["updated_at", "2015-10-28 16:57:46.655282"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.657606"], ["updated_at", "2015-10-28 16:57:46.657606"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:57:46.658852"], ["updated_at", "2015-10-28 16:57:46.658852"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:57:46.660419"], ["updated_at", "2015-10-28 16:57:46.660419"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms Sent mail to user5@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 17:57:46 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630fe8aa2450_178bf3fc3254601e0234a2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:57:46.669570"], ["updated_at", "2015-10-28 16:57:46.669570"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:57:46.671689"], ["updated_at", "2015-10-28 16:57:46.671689"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.676229"], ["updated_at", "2015-10-28 16:57:46.676229"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:57:46.678177"], ["updated_at", "2015-10-28 16:57:46.678177"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:57:46.680649"], ["updated_at", "2015-10-28 16:57:46.680649"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user6@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 17:57:46 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630fe8aa6f1a_178bf3fc3254601e02353@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (1.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:57:46.691109"], ["updated_at", "2015-10-28 16:57:46.691109"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:57:46.695211"], ["updated_at", "2015-10-28 16:57:46.695211"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:57:46.698339"], ["updated_at", "2015-10-28 16:57:46.698339"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:57:46.699709"], ["updated_at", "2015-10-28 16:57:46.699709"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:57:46.701358"], ["updated_at", "2015-10-28 16:57:46.701358"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user7@sleede.com (2.0ms) Date: Wed, 28 Oct 2015 17:57:46 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630fe8aac019_178bf3fc3254601e0236a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:58:25.214503"], ["updated_at", "2015-10-28 16:58:25.214503"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:58:25.231323"], ["updated_at", "2015-10-28 16:58:25.231323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.248571"], ["updated_at", "2015-10-28 16:58:25.248571"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:58:25.255906"], ["updated_at", "2015-10-28 16:58:25.255906"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:58:25.259396"], ["updated_at", "2015-10-28 16:58:25.259396"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:58:25.266155"], ["updated_at", "2015-10-28 16:58:25.266155"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:58:25.268473"], ["updated_at", "2015-10-28 16:58:25.268473"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.271412"], ["updated_at", "2015-10-28 16:58:25.271412"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:58:25.272619"], ["updated_at", "2015-10-28 16:58:25.272619"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:58:25.274405"], ["updated_at", "2015-10-28 16:58:25.274405"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:58:25.278640"], ["updated_at", "2015-10-28 16:58:25.278640"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:58:25.280871"], ["updated_at", "2015-10-28 16:58:25.280871"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.283323"], ["updated_at", "2015-10-28 16:58:25.283323"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:58:25.284474"], ["updated_at", "2015-10-28 16:58:25.284474"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:58:25.286315"], ["updated_at", "2015-10-28 16:58:25.286315"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (3.1ms) [1m[36mSQL (0.5ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 34.4ms Sent mail to user3@sleede.com (11.1ms) Date: Wed, 28 Oct 2015 17:58:25 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630feb150e7b_178cb3fdc794001d8380b7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:58:25.360501"], ["updated_at", "2015-10-28 16:58:25.360501"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:58:25.362971"], ["updated_at", "2015-10-28 16:58:25.362971"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.365589"], ["updated_at", "2015-10-28 16:58:25.365589"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:58:25.366812"], ["updated_at", "2015-10-28 16:58:25.366812"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:58:25.368722"], ["updated_at", "2015-10-28 16:58:25.368722"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms Sent mail to user4@sleede.com (1.7ms) Date: Wed, 28 Oct 2015 17:58:25 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630feb15b215_178cb3fdc794001d8381aa@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:58:25.377678"], ["updated_at", "2015-10-28 16:58:25.377678"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:58:25.380256"], ["updated_at", "2015-10-28 16:58:25.380256"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.383076"], ["updated_at", "2015-10-28 16:58:25.383076"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:58:25.384629"], ["updated_at", "2015-10-28 16:58:25.384629"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:58:25.386432"], ["updated_at", "2015-10-28 16:58:25.386432"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.5ms Sent mail to user5@sleede.com (4.1ms) Date: Wed, 28 Oct 2015 17:58:25 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630feb1608e0_178cb3fdc794001d8382eb@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:58:25.402845"], ["updated_at", "2015-10-28 16:58:25.402845"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:58:25.404871"], ["updated_at", "2015-10-28 16:58:25.404871"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.407217"], ["updated_at", "2015-10-28 16:58:25.407217"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:58:25.408386"], ["updated_at", "2015-10-28 16:58:25.408386"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:58:25.409775"], ["updated_at", "2015-10-28 16:58:25.409775"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user6@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 17:58:25 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630feb164cf8_178cb3fdc794001d83836a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:58:25.416905"], ["updated_at", "2015-10-28 16:58:25.416905"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:58:25.418788"], ["updated_at", "2015-10-28 16:58:25.418788"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:58:25.421295"], ["updated_at", "2015-10-28 16:58:25.421295"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:58:25.422484"], ["updated_at", "2015-10-28 16:58:25.422484"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:58:25.423877"], ["updated_at", "2015-10-28 16:58:25.423877"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.9ms Sent mail to user7@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 17:58:25 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630feb168a5b_178cb3fdc794001d83842a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (1.5ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:59:26.597485"], ["updated_at", "2015-10-28 16:59:26.597485"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:26.613187"], ["updated_at", "2015-10-28 16:59:26.613187"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.628820"], ["updated_at", "2015-10-28 16:59:26.628820"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:26.636668"], ["updated_at", "2015-10-28 16:59:26.636668"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:26.639552"], ["updated_at", "2015-10-28 16:59:26.639552"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:59:26.646236"], ["updated_at", "2015-10-28 16:59:26.646236"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:26.648328"], ["updated_at", "2015-10-28 16:59:26.648328"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.650598"], ["updated_at", "2015-10-28 16:59:26.650598"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:26.651790"], ["updated_at", "2015-10-28 16:59:26.651790"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:26.653202"], ["updated_at", "2015-10-28 16:59:26.653202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:59:26.657175"], ["updated_at", "2015-10-28 16:59:26.657175"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:26.659074"], ["updated_at", "2015-10-28 16:59:26.659074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.661184"], ["updated_at", "2015-10-28 16:59:26.661184"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:26.662409"], ["updated_at", "2015-10-28 16:59:26.662409"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:26.663930"], ["updated_at", "2015-10-28 16:59:26.663930"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 26.0ms Sent mail to user3@sleede.com (12.3ms) Date: Wed, 28 Oct 2015 17:59:26 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630feeeaad73_178db3fcf9cc601dc884b8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user3@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 17:59:26 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630feeeacdbd_178db3fcf9cc601dc88557@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:59:26.734585"], ["updated_at", "2015-10-28 16:59:26.734585"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:26.736717"], ["updated_at", "2015-10-28 16:59:26.736717"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.738908"], ["updated_at", "2015-10-28 16:59:26.738908"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:26.740233"], ["updated_at", "2015-10-28 16:59:26.740233"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:26.741712"], ["updated_at", "2015-10-28 16:59:26.741712"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user4@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 17:59:26 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630feeeb5f2f_178db3fcf9cc601dc88636@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:59:26.748942"], ["updated_at", "2015-10-28 16:59:26.748942"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:26.750853"], ["updated_at", "2015-10-28 16:59:26.750853"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.752873"], ["updated_at", "2015-10-28 16:59:26.752873"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:26.753990"], ["updated_at", "2015-10-28 16:59:26.753990"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:26.755388"], ["updated_at", "2015-10-28 16:59:26.755388"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user5@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 17:59:26 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630feeeb930f_178db3fcf9cc601dc887d9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:59:26.763759"], ["updated_at", "2015-10-28 16:59:26.763759"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:26.765917"], ["updated_at", "2015-10-28 16:59:26.765917"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.769982"], ["updated_at", "2015-10-28 16:59:26.769982"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:26.772426"], ["updated_at", "2015-10-28 16:59:26.772426"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:26.774635"], ["updated_at", "2015-10-28 16:59:26.774635"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user6@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 17:59:26 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630feeebe478_178db3fcf9cc601dc8884e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:59:26.783121"], ["updated_at", "2015-10-28 16:59:26.783121"]] [1m[35m (0.3ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:26.788131"], ["updated_at", "2015-10-28 16:59:26.788131"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:26.794912"], ["updated_at", "2015-10-28 16:59:26.794912"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:26.797353"], ["updated_at", "2015-10-28 16:59:26.797353"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:26.799127"], ["updated_at", "2015-10-28 16:59:26.799127"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user7@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 17:59:26 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630feeec3e50_178db3fcf9cc601dc8897b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 16:59:50.345944"], ["updated_at", "2015-10-28 16:59:50.345944"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:50.359584"], ["updated_at", "2015-10-28 16:59:50.359584"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.375569"], ["updated_at", "2015-10-28 16:59:50.375569"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:50.382427"], ["updated_at", "2015-10-28 16:59:50.382427"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:50.385168"], ["updated_at", "2015-10-28 16:59:50.385168"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 16:59:50.390869"], ["updated_at", "2015-10-28 16:59:50.390869"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 16:59:50.392967"], ["updated_at", "2015-10-28 16:59:50.392967"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.395132"], ["updated_at", "2015-10-28 16:59:50.395132"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:50.396319"], ["updated_at", "2015-10-28 16:59:50.396319"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:50.399007"], ["updated_at", "2015-10-28 16:59:50.399007"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 16:59:50.403196"], ["updated_at", "2015-10-28 16:59:50.403196"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:50.405241"], ["updated_at", "2015-10-28 16:59:50.405241"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.407410"], ["updated_at", "2015-10-28 16:59:50.407410"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:50.408578"], ["updated_at", "2015-10-28 16:59:50.408578"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:50.410026"], ["updated_at", "2015-10-28 16:59:50.410026"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 26.5ms Sent mail to user3@sleede.com (6.5ms) Date: Wed, 28 Oct 2015 17:59:50 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff066c141_178e13febdd4601dc476d7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user3@sleede.com (3.1ms) Date: Wed, 28 Oct 2015 17:59:50 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff066d6a6_178e13febdd4601dc477c9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 16:59:50.480246"], ["updated_at", "2015-10-28 16:59:50.480246"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:50.482530"], ["updated_at", "2015-10-28 16:59:50.482530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.484786"], ["updated_at", "2015-10-28 16:59:50.484786"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:50.486211"], ["updated_at", "2015-10-28 16:59:50.486211"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:50.489834"], ["updated_at", "2015-10-28 16:59:50.489834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user4@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 17:59:50 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630ff067898a_178e13febdd4601dc478c3@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 16:59:50.498520"], ["updated_at", "2015-10-28 16:59:50.498520"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:50.500517"], ["updated_at", "2015-10-28 16:59:50.500517"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.503014"], ["updated_at", "2015-10-28 16:59:50.503014"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:50.507509"], ["updated_at", "2015-10-28 16:59:50.507509"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:50.511834"], ["updated_at", "2015-10-28 16:59:50.511834"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user5@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 17:59:50 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630ff067e53c_178e13febdd4601dc47910@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 16:59:50.522617"], ["updated_at", "2015-10-28 16:59:50.522617"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:50.524799"], ["updated_at", "2015-10-28 16:59:50.524799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.526979"], ["updated_at", "2015-10-28 16:59:50.526979"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:50.528217"], ["updated_at", "2015-10-28 16:59:50.528217"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:50.529748"], ["updated_at", "2015-10-28 16:59:50.529748"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user6@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 17:59:50 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630ff06822a1_178e13febdd4601dc48025@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 16:59:50.537103"], ["updated_at", "2015-10-28 16:59:50.537103"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 16:59:50.539319"], ["updated_at", "2015-10-28 16:59:50.539319"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 16:59:50.544157"], ["updated_at", "2015-10-28 16:59:50.544157"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 16:59:50.546097"], ["updated_at", "2015-10-28 16:59:50.546097"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 16:59:50.548362"], ["updated_at", "2015-10-28 16:59:50.548362"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user7@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 17:59:50 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630ff0686eb8_178e13febdd4601dc481b9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:00:19.134278"], ["updated_at", "2015-10-28 17:00:19.134278"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:00:19.150726"], ["updated_at", "2015-10-28 17:00:19.150726"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.167758"], ["updated_at", "2015-10-28 17:00:19.167758"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:00:19.174899"], ["updated_at", "2015-10-28 17:00:19.174899"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:00:19.177671"], ["updated_at", "2015-10-28 17:00:19.177671"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:00:19.183716"], ["updated_at", "2015-10-28 17:00:19.183716"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:00:19.185851"], ["updated_at", "2015-10-28 17:00:19.185851"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.188003"], ["updated_at", "2015-10-28 17:00:19.188003"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:00:19.189195"], ["updated_at", "2015-10-28 17:00:19.189195"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:00:19.190576"], ["updated_at", "2015-10-28 17:00:19.190576"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:00:19.194608"], ["updated_at", "2015-10-28 17:00:19.194608"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:00:19.196416"], ["updated_at", "2015-10-28 17:00:19.196416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.198319"], ["updated_at", "2015-10-28 17:00:19.198319"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:00:19.199418"], ["updated_at", "2015-10-28 17:00:19.199418"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:00:19.200797"], ["updated_at", "2015-10-28 17:00:19.200797"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 22.5ms Sent mail to user3@sleede.com (6.7ms) Date: Wed, 28 Oct 2015 18:00:19 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff2337ff8_178e93fed218601d466238@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) NotificationsMailer#send_mail_by: processed outbound mail in 1.0ms Sent mail to user3@sleede.com (1.1ms) Date: Wed, 28 Oct 2015 18:00:19 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff23391ef_178e93fed218601d46633e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:00:19.263998"], ["updated_at", "2015-10-28 17:00:19.263998"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:00:19.266075"], ["updated_at", "2015-10-28 17:00:19.266075"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.268161"], ["updated_at", "2015-10-28 17:00:19.268161"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:00:19.269326"], ["updated_at", "2015-10-28 17:00:19.269326"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:00:19.270732"], ["updated_at", "2015-10-28 17:00:19.270732"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user4@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:00:19 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630ff2342faa_178e93fed218601d4664c1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:00:19.279320"], ["updated_at", "2015-10-28 17:00:19.279320"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:00:19.281672"], ["updated_at", "2015-10-28 17:00:19.281672"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.284792"], ["updated_at", "2015-10-28 17:00:19.284792"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:00:19.286848"], ["updated_at", "2015-10-28 17:00:19.286848"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:00:19.288976"], ["updated_at", "2015-10-28 17:00:19.288976"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.0ms Sent mail to user5@sleede.com (2.4ms) Date: Wed, 28 Oct 2015 18:00:19 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630ff23487a7_178e93fed218601d466514@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:00:19.302574"], ["updated_at", "2015-10-28 17:00:19.302574"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:00:19.304553"], ["updated_at", "2015-10-28 17:00:19.304553"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.306514"], ["updated_at", "2015-10-28 17:00:19.306514"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:00:19.307634"], ["updated_at", "2015-10-28 17:00:19.307634"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:00:19.309031"], ["updated_at", "2015-10-28 17:00:19.309031"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user6@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:00:19 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630ff234c42c_178e93fed218601d466638@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:00:19.315894"], ["updated_at", "2015-10-28 17:00:19.315894"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:00:19.317770"], ["updated_at", "2015-10-28 17:00:19.317770"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:00:19.319791"], ["updated_at", "2015-10-28 17:00:19.319791"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:00:19.321131"], ["updated_at", "2015-10-28 17:00:19.321131"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:00:19.323245"], ["updated_at", "2015-10-28 17:00:19.323245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user7@sleede.com (2.0ms) Date: Wed, 28 Oct 2015 18:00:19 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630ff234fd81_178e93fed218601d4667c1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:01:15.526948"], ["updated_at", "2015-10-28 17:01:15.526948"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:15.541300"], ["updated_at", "2015-10-28 17:01:15.541300"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.555522"], ["updated_at", "2015-10-28 17:01:15.555522"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:15.562109"], ["updated_at", "2015-10-28 17:01:15.562109"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:15.564770"], ["updated_at", "2015-10-28 17:01:15.564770"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:01:15.571329"], ["updated_at", "2015-10-28 17:01:15.571329"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:15.573289"], ["updated_at", "2015-10-28 17:01:15.573289"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.575335"], ["updated_at", "2015-10-28 17:01:15.575335"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:15.576445"], ["updated_at", "2015-10-28 17:01:15.576445"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:15.577802"], ["updated_at", "2015-10-28 17:01:15.577802"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:01:15.581476"], ["updated_at", "2015-10-28 17:01:15.581476"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:15.583322"], ["updated_at", "2015-10-28 17:01:15.583322"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.585264"], ["updated_at", "2015-10-28 17:01:15.585264"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:15.586473"], ["updated_at", "2015-10-28 17:01:15.586473"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:15.587866"], ["updated_at", "2015-10-28 17:01:15.587866"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 22.5ms Sent mail to user3@sleede.com (6.9ms) Date: Wed, 28 Oct 2015 18:01:15 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff5b968d2_178f83fcd250601d0727ea@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user3@sleede.com (2.6ms) Date: Wed, 28 Oct 2015 18:01:15 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff5b97f73_178f83fcd250601d0728fa@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:01:15.652794"], ["updated_at", "2015-10-28 17:01:15.652794"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:15.654836"], ["updated_at", "2015-10-28 17:01:15.654836"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.656926"], ["updated_at", "2015-10-28 17:01:15.656926"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:15.658048"], ["updated_at", "2015-10-28 17:01:15.658048"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:15.659522"], ["updated_at", "2015-10-28 17:01:15.659522"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.2ms Sent mail to user4@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 18:01:15 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630ff5ba2606_178f83fcd250601d072923@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:01:15.669465"], ["updated_at", "2015-10-28 17:01:15.669465"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:15.671725"], ["updated_at", "2015-10-28 17:01:15.671725"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.677724"], ["updated_at", "2015-10-28 17:01:15.677724"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:15.680996"], ["updated_at", "2015-10-28 17:01:15.680996"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:15.684351"], ["updated_at", "2015-10-28 17:01:15.684351"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user5@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:01:15 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630ff5ba7e85_178f83fcd250601d073059@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:01:15.692401"], ["updated_at", "2015-10-28 17:01:15.692401"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:15.694321"], ["updated_at", "2015-10-28 17:01:15.694321"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.696319"], ["updated_at", "2015-10-28 17:01:15.696319"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:15.697432"], ["updated_at", "2015-10-28 17:01:15.697432"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:15.698811"], ["updated_at", "2015-10-28 17:01:15.698811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user6@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:01:15 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630ff5bab696_178f83fcd250601d073145@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:01:15.705848"], ["updated_at", "2015-10-28 17:01:15.705848"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:15.707769"], ["updated_at", "2015-10-28 17:01:15.707769"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:15.709755"], ["updated_at", "2015-10-28 17:01:15.709755"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:15.710890"], ["updated_at", "2015-10-28 17:01:15.710890"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:15.713850"], ["updated_at", "2015-10-28 17:01:15.713850"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user7@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 18:01:15 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630ff5baf595_178f83fcd250601d073219@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:01:38.278970"], ["updated_at", "2015-10-28 17:01:38.278970"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:38.293338"], ["updated_at", "2015-10-28 17:01:38.293338"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.307603"], ["updated_at", "2015-10-28 17:01:38.307603"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:38.314548"], ["updated_at", "2015-10-28 17:01:38.314548"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:38.317712"], ["updated_at", "2015-10-28 17:01:38.317712"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:01:38.324153"], ["updated_at", "2015-10-28 17:01:38.324153"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:01:38.326201"], ["updated_at", "2015-10-28 17:01:38.326201"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.328157"], ["updated_at", "2015-10-28 17:01:38.328157"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:38.329309"], ["updated_at", "2015-10-28 17:01:38.329309"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:38.330681"], ["updated_at", "2015-10-28 17:01:38.330681"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:01:38.334230"], ["updated_at", "2015-10-28 17:01:38.334230"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:38.336021"], ["updated_at", "2015-10-28 17:01:38.336021"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.337894"], ["updated_at", "2015-10-28 17:01:38.337894"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:38.338968"], ["updated_at", "2015-10-28 17:01:38.338968"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:38.340293"], ["updated_at", "2015-10-28 17:01:38.340293"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.1ms Sent mail to user3@sleede.com (10.4ms) Date: Wed, 28 Oct 2015 18:01:38 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff725aec5_179013fc5610601d844819@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) NotificationsMailer#send_mail_by: processed outbound mail in 4.1ms Sent mail to user3@sleede.com (2.7ms) Date: Wed, 28 Oct 2015 18:01:38 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff725e1d0_179013fc5610601d844985@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:01:38.412190"], ["updated_at", "2015-10-28 17:01:38.412190"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:38.414423"], ["updated_at", "2015-10-28 17:01:38.414423"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.419489"], ["updated_at", "2015-10-28 17:01:38.419489"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:38.421106"], ["updated_at", "2015-10-28 17:01:38.421106"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:38.422954"], ["updated_at", "2015-10-28 17:01:38.422954"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.2ms Sent mail to user4@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:01:38 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630ff7268565_179013fc5610601d8450da@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:01:38.430956"], ["updated_at", "2015-10-28 17:01:38.430956"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:38.432913"], ["updated_at", "2015-10-28 17:01:38.432913"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.436028"], ["updated_at", "2015-10-28 17:01:38.436028"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:38.439798"], ["updated_at", "2015-10-28 17:01:38.439798"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:38.444282"], ["updated_at", "2015-10-28 17:01:38.444282"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user5@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 18:01:38 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630ff726d9dc_179013fc5610601d845120@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:01:38.453891"], ["updated_at", "2015-10-28 17:01:38.453891"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:38.455727"], ["updated_at", "2015-10-28 17:01:38.455727"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.457623"], ["updated_at", "2015-10-28 17:01:38.457623"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:38.458714"], ["updated_at", "2015-10-28 17:01:38.458714"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:38.460090"], ["updated_at", "2015-10-28 17:01:38.460090"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user6@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:01:38 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630ff72711ee_179013fc5610601d84528b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:01:38.466745"], ["updated_at", "2015-10-28 17:01:38.466745"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:01:38.468596"], ["updated_at", "2015-10-28 17:01:38.468596"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:01:38.470564"], ["updated_at", "2015-10-28 17:01:38.470564"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:01:38.471665"], ["updated_at", "2015-10-28 17:01:38.471665"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:01:38.473029"], ["updated_at", "2015-10-28 17:01:38.473029"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.8ms Sent mail to user7@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:01:38 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630ff7274ade_179013fc5610601d8453c5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:02:18.700170"], ["updated_at", "2015-10-28 17:02:18.700170"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:02:18.716494"], ["updated_at", "2015-10-28 17:02:18.716494"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.731510"], ["updated_at", "2015-10-28 17:02:18.731510"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:02:18.738182"], ["updated_at", "2015-10-28 17:02:18.738182"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:02:18.740761"], ["updated_at", "2015-10-28 17:02:18.740761"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:02:18.746251"], ["updated_at", "2015-10-28 17:02:18.746251"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:02:18.748063"], ["updated_at", "2015-10-28 17:02:18.748063"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.749949"], ["updated_at", "2015-10-28 17:02:18.749949"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:02:18.751060"], ["updated_at", "2015-10-28 17:02:18.751060"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:02:18.752437"], ["updated_at", "2015-10-28 17:02:18.752437"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:02:18.756069"], ["updated_at", "2015-10-28 17:02:18.756069"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:02:18.757846"], ["updated_at", "2015-10-28 17:02:18.757846"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.759780"], ["updated_at", "2015-10-28 17:02:18.759780"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:02:18.760869"], ["updated_at", "2015-10-28 17:02:18.760869"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:02:18.762233"], ["updated_at", "2015-10-28 17:02:18.762233"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 22.8ms Sent mail to user3@sleede.com (6.7ms) Date: Wed, 28 Oct 2015 18:02:18 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ff9ac115f_1790a3fe5914601d46651d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:02:18.823394"], ["updated_at", "2015-10-28 17:02:18.823394"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:02:18.825396"], ["updated_at", "2015-10-28 17:02:18.825396"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.827545"], ["updated_at", "2015-10-28 17:02:18.827545"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:02:18.828695"], ["updated_at", "2015-10-28 17:02:18.828695"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:02:18.830112"], ["updated_at", "2015-10-28 17:02:18.830112"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user4@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:02:18 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630ff9acb88d_1790a3fe5914601d466642@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:02:18.837370"], ["updated_at", "2015-10-28 17:02:18.837370"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:02:18.839527"], ["updated_at", "2015-10-28 17:02:18.839527"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.842063"], ["updated_at", "2015-10-28 17:02:18.842063"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:02:18.843409"], ["updated_at", "2015-10-28 17:02:18.843409"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:02:18.845065"], ["updated_at", "2015-10-28 17:02:18.845065"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user5@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:02:18 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630ff9acf34d_1790a3fe5914601d4667c9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:02:18.853743"], ["updated_at", "2015-10-28 17:02:18.853743"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:02:18.855725"], ["updated_at", "2015-10-28 17:02:18.855725"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.859777"], ["updated_at", "2015-10-28 17:02:18.859777"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:02:18.861275"], ["updated_at", "2015-10-28 17:02:18.861275"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:02:18.863756"], ["updated_at", "2015-10-28 17:02:18.863756"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user6@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 18:02:18 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630ff9ad3e59_1790a3fe5914601d4668cb@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:02:18.871814"], ["updated_at", "2015-10-28 17:02:18.871814"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:02:18.875974"], ["updated_at", "2015-10-28 17:02:18.875974"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:02:18.884426"], ["updated_at", "2015-10-28 17:02:18.884426"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:02:18.886237"], ["updated_at", "2015-10-28 17:02:18.886237"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:02:18.887940"], ["updated_at", "2015-10-28 17:02:18.887940"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user7@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:02:18 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630ff9ad9930_1790a3fe5914601d4669be@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:03:30.561843"], ["updated_at", "2015-10-28 17:03:30.561843"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:03:30.577313"], ["updated_at", "2015-10-28 17:03:30.577313"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.592632"], ["updated_at", "2015-10-28 17:03:30.592632"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:03:30.600957"], ["updated_at", "2015-10-28 17:03:30.600957"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:03:30.603725"], ["updated_at", "2015-10-28 17:03:30.603725"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:03:30.609321"], ["updated_at", "2015-10-28 17:03:30.609321"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:03:30.611286"], ["updated_at", "2015-10-28 17:03:30.611286"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.613488"], ["updated_at", "2015-10-28 17:03:30.613488"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:03:30.614689"], ["updated_at", "2015-10-28 17:03:30.614689"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:03:30.616154"], ["updated_at", "2015-10-28 17:03:30.616154"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:03:30.620009"], ["updated_at", "2015-10-28 17:03:30.620009"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:03:30.621998"], ["updated_at", "2015-10-28 17:03:30.621998"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.624211"], ["updated_at", "2015-10-28 17:03:30.624211"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:03:30.625433"], ["updated_at", "2015-10-28 17:03:30.625433"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:03:30.626883"], ["updated_at", "2015-10-28 17:03:30.626883"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 24.5ms Sent mail to user3@sleede.com (8.8ms) Date: Wed, 28 Oct 2015 18:03:30 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5630ffe2a0942_179293ff02c8601d029974@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:03:30.691992"], ["updated_at", "2015-10-28 17:03:30.691992"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:03:30.694390"], ["updated_at", "2015-10-28 17:03:30.694390"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.696744"], ["updated_at", "2015-10-28 17:03:30.696744"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:03:30.697990"], ["updated_at", "2015-10-28 17:03:30.697990"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:03:30.700017"], ["updated_at", "2015-10-28 17:03:30.700017"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user4@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 18:03:30 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5630ffe2abfaf_179293ff02c8601d0300dd@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:03:30.708213"], ["updated_at", "2015-10-28 17:03:30.708213"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:03:30.710384"], ["updated_at", "2015-10-28 17:03:30.710384"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.712583"], ["updated_at", "2015-10-28 17:03:30.712583"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:03:30.714233"], ["updated_at", "2015-10-28 17:03:30.714233"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:03:30.715853"], ["updated_at", "2015-10-28 17:03:30.715853"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user5@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 18:03:30 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5630ffe2afb23_179293ff02c8601d030122@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:03:30.726489"], ["updated_at", "2015-10-28 17:03:30.726489"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:03:30.729175"], ["updated_at", "2015-10-28 17:03:30.729175"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.732761"], ["updated_at", "2015-10-28 17:03:30.732761"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:03:30.734767"], ["updated_at", "2015-10-28 17:03:30.734767"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:03:30.736560"], ["updated_at", "2015-10-28 17:03:30.736560"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 6.6ms Sent mail to user6@sleede.com (4.2ms) Date: Wed, 28 Oct 2015 18:03:30 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5630ffe2b6441_179293ff02c8601d0302de@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:03:30.752244"], ["updated_at", "2015-10-28 17:03:30.752244"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:03:30.754443"], ["updated_at", "2015-10-28 17:03:30.754443"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:03:30.756808"], ["updated_at", "2015-10-28 17:03:30.756808"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:03:30.758091"], ["updated_at", "2015-10-28 17:03:30.758091"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:03:30.759655"], ["updated_at", "2015-10-28 17:03:30.759655"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user7@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:03:30 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5630ffe2ba541_179293ff02c8601d0303f9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:04:44.540195"], ["updated_at", "2015-10-28 17:04:44.540195"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:04:44.556282"], ["updated_at", "2015-10-28 17:04:44.556282"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.571295"], ["updated_at", "2015-10-28 17:04:44.571295"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:04:44.577789"], ["updated_at", "2015-10-28 17:04:44.577789"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:04:44.580666"], ["updated_at", "2015-10-28 17:04:44.580666"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:04:44.587068"], ["updated_at", "2015-10-28 17:04:44.587068"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:04:44.588962"], ["updated_at", "2015-10-28 17:04:44.588962"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.591048"], ["updated_at", "2015-10-28 17:04:44.591048"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:04:44.592197"], ["updated_at", "2015-10-28 17:04:44.592197"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:04:44.593569"], ["updated_at", "2015-10-28 17:04:44.593569"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:04:44.597332"], ["updated_at", "2015-10-28 17:04:44.597332"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:04:44.599136"], ["updated_at", "2015-10-28 17:04:44.599136"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.601000"], ["updated_at", "2015-10-28 17:04:44.601000"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:04:44.602085"], ["updated_at", "2015-10-28 17:04:44.602085"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:04:44.603430"], ["updated_at", "2015-10-28 17:04:44.603430"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 24.1ms Sent mail to user3@sleede.com (8.9ms) Date: Wed, 28 Oct 2015 18:04:44 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5631002c9ac57_179403fd915c601dc38482@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:04:44.666462"], ["updated_at", "2015-10-28 17:04:44.666462"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:04:44.668663"], ["updated_at", "2015-10-28 17:04:44.668663"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.670837"], ["updated_at", "2015-10-28 17:04:44.670837"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:04:44.672004"], ["updated_at", "2015-10-28 17:04:44.672004"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:04:44.673623"], ["updated_at", "2015-10-28 17:04:44.673623"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user4@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:04:44 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631002ca55c1_179403fd915c601dc38533@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:04:44.680938"], ["updated_at", "2015-10-28 17:04:44.680938"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:04:44.682813"], ["updated_at", "2015-10-28 17:04:44.682813"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.684868"], ["updated_at", "2015-10-28 17:04:44.684868"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:04:44.685985"], ["updated_at", "2015-10-28 17:04:44.685985"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:04:44.687375"], ["updated_at", "2015-10-28 17:04:44.687375"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user5@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:04:44 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631002ca89aa_179403fd915c601dc3863d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:04:44.695067"], ["updated_at", "2015-10-28 17:04:44.695067"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:04:44.696997"], ["updated_at", "2015-10-28 17:04:44.696997"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.699074"], ["updated_at", "2015-10-28 17:04:44.699074"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:04:44.701846"], ["updated_at", "2015-10-28 17:04:44.701846"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:04:44.703929"], ["updated_at", "2015-10-28 17:04:44.703929"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user6@sleede.com (1.7ms) Date: Wed, 28 Oct 2015 18:04:44 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5631002cacd8d_179403fd915c601dc387d4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:04:44.712139"], ["updated_at", "2015-10-28 17:04:44.712139"]] [1m[35m (0.3ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:04:44.718559"], ["updated_at", "2015-10-28 17:04:44.718559"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:04:44.724517"], ["updated_at", "2015-10-28 17:04:44.724517"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:04:44.726171"], ["updated_at", "2015-10-28 17:04:44.726171"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:04:44.727801"], ["updated_at", "2015-10-28 17:04:44.727801"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user7@sleede.com (1.5ms) Date: Wed, 28 Oct 2015 18:04:44 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631002cb2733_179403fd915c601dc3888c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:05:28.035717"], ["updated_at", "2015-10-28 17:05:28.035717"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:28.051338"], ["updated_at", "2015-10-28 17:05:28.051338"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.067532"], ["updated_at", "2015-10-28 17:05:28.067532"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:28.074785"], ["updated_at", "2015-10-28 17:05:28.074785"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:28.077501"], ["updated_at", "2015-10-28 17:05:28.077501"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:05:28.083115"], ["updated_at", "2015-10-28 17:05:28.083115"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:28.085193"], ["updated_at", "2015-10-28 17:05:28.085193"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.087393"], ["updated_at", "2015-10-28 17:05:28.087393"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:28.088592"], ["updated_at", "2015-10-28 17:05:28.088592"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:28.090044"], ["updated_at", "2015-10-28 17:05:28.090044"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:05:28.094070"], ["updated_at", "2015-10-28 17:05:28.094070"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:28.096072"], ["updated_at", "2015-10-28 17:05:28.096072"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.098219"], ["updated_at", "2015-10-28 17:05:28.098219"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:28.099413"], ["updated_at", "2015-10-28 17:05:28.099413"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:28.100855"], ["updated_at", "2015-10-28 17:05:28.100855"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 23.8ms Sent mail to user3@sleede.com (11.9ms) Date: Wed, 28 Oct 2015 18:05:28 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <56310058206c4_1794e3fc018c601d43844f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:05:28.145680"], ["updated_at", "2015-10-28 17:05:28.145680"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:28.147878"], ["updated_at", "2015-10-28 17:05:28.147878"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.150083"], ["updated_at", "2015-10-28 17:05:28.150083"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:28.151365"], ["updated_at", "2015-10-28 17:05:28.151365"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:28.152867"], ["updated_at", "2015-10-28 17:05:28.152867"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user4@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:05:28 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <563100582635d_1794e3fc018c601d43852@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:05:28.160290"], ["updated_at", "2015-10-28 17:05:28.160290"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:28.162437"], ["updated_at", "2015-10-28 17:05:28.162437"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.164652"], ["updated_at", "2015-10-28 17:05:28.164652"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:28.165953"], ["updated_at", "2015-10-28 17:05:28.165953"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:28.167466"], ["updated_at", "2015-10-28 17:05:28.167466"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user5@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:05:28 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631005829b8e_1794e3fc018c601d4386a1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:05:28.175709"], ["updated_at", "2015-10-28 17:05:28.175709"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:28.177893"], ["updated_at", "2015-10-28 17:05:28.177893"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.182569"], ["updated_at", "2015-10-28 17:05:28.182569"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:28.184222"], ["updated_at", "2015-10-28 17:05:28.184222"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:28.186813"], ["updated_at", "2015-10-28 17:05:28.186813"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user6@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:05:28 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <563100582ea06_1794e3fc018c601d43877a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:05:28.194688"], ["updated_at", "2015-10-28 17:05:28.194688"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:28.198368"], ["updated_at", "2015-10-28 17:05:28.198368"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:28.206249"], ["updated_at", "2015-10-28 17:05:28.206249"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:28.208828"], ["updated_at", "2015-10-28 17:05:28.208828"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:28.210468"], ["updated_at", "2015-10-28 17:05:28.210468"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user7@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:05:28 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56310058342a8_1794e3fc018c601d4388b1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:05:49.674422"], ["updated_at", "2015-10-28 17:05:49.674422"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:49.689004"], ["updated_at", "2015-10-28 17:05:49.689004"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.704264"], ["updated_at", "2015-10-28 17:05:49.704264"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:49.711380"], ["updated_at", "2015-10-28 17:05:49.711380"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:49.713958"], ["updated_at", "2015-10-28 17:05:49.713958"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:05:49.719721"], ["updated_at", "2015-10-28 17:05:49.719721"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:05:49.721548"], ["updated_at", "2015-10-28 17:05:49.721548"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.723534"], ["updated_at", "2015-10-28 17:05:49.723534"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:49.724645"], ["updated_at", "2015-10-28 17:05:49.724645"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:49.726025"], ["updated_at", "2015-10-28 17:05:49.726025"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:05:49.729696"], ["updated_at", "2015-10-28 17:05:49.729696"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:49.731599"], ["updated_at", "2015-10-28 17:05:49.731599"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.733609"], ["updated_at", "2015-10-28 17:05:49.733609"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:49.734758"], ["updated_at", "2015-10-28 17:05:49.734758"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:49.736229"], ["updated_at", "2015-10-28 17:05:49.736229"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.8ms Sent mail to user3@sleede.com (6.6ms) Date: Wed, 28 Oct 2015 18:05:49 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5631006dbb8b0_179533fc531c601d42133f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:05:49.773830"], ["updated_at", "2015-10-28 17:05:49.773830"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:49.779463"], ["updated_at", "2015-10-28 17:05:49.779463"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.785856"], ["updated_at", "2015-10-28 17:05:49.785856"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:49.787517"], ["updated_at", "2015-10-28 17:05:49.787517"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:49.789236"], ["updated_at", "2015-10-28 17:05:49.789236"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user4@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:05:49 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631006dc17f8_179533fc531c601d4214a4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:05:49.796236"], ["updated_at", "2015-10-28 17:05:49.796236"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:49.798096"], ["updated_at", "2015-10-28 17:05:49.798096"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.800234"], ["updated_at", "2015-10-28 17:05:49.800234"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:49.801395"], ["updated_at", "2015-10-28 17:05:49.801395"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:49.802849"], ["updated_at", "2015-10-28 17:05:49.802849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user5@sleede.com (1.4ms) Date: Wed, 28 Oct 2015 18:05:49 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631006dc4e36_179533fc531c601d421518@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:05:49.811030"], ["updated_at", "2015-10-28 17:05:49.811030"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:49.814045"], ["updated_at", "2015-10-28 17:05:49.814045"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.817095"], ["updated_at", "2015-10-28 17:05:49.817095"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:49.818492"], ["updated_at", "2015-10-28 17:05:49.818492"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:49.820968"], ["updated_at", "2015-10-28 17:05:49.820968"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user6@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:05:49 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5631006dc9607_179533fc531c601d4216c6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:05:49.828436"], ["updated_at", "2015-10-28 17:05:49.828436"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:05:49.835808"], ["updated_at", "2015-10-28 17:05:49.835808"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:05:49.841989"], ["updated_at", "2015-10-28 17:05:49.841989"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:05:49.843565"], ["updated_at", "2015-10-28 17:05:49.843565"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:05:49.845355"], ["updated_at", "2015-10-28 17:05:49.845355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user7@sleede.com (1.6ms) Date: Wed, 28 Oct 2015 18:05:49 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631006dcf32e_179533fc531c601d4217e8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-28 17:06:33.959490"], ["updated_at", "2015-10-28 17:06:33.959490"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:06:33.975307"], ["updated_at", "2015-10-28 17:06:33.975307"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:33.991125"], ["updated_at", "2015-10-28 17:06:33.991125"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:06:33.997796"], ["updated_at", "2015-10-28 17:06:33.997796"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:06:34.000391"], ["updated_at", "2015-10-28 17:06:34.000391"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-28 17:06:34.005649"], ["updated_at", "2015-10-28 17:06:34.005649"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:06:34.007646"], ["updated_at", "2015-10-28 17:06:34.007646"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.009671"], ["updated_at", "2015-10-28 17:06:34.009671"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:06:34.010791"], ["updated_at", "2015-10-28 17:06:34.010791"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:06:34.012196"], ["updated_at", "2015-10-28 17:06:34.012196"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-28 17:06:34.015714"], ["updated_at", "2015-10-28 17:06:34.015714"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-28 17:06:34.017597"], ["updated_at", "2015-10-28 17:06:34.017597"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.019676"], ["updated_at", "2015-10-28 17:06:34.019676"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:06:34.020786"], ["updated_at", "2015-10-28 17:06:34.020786"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:06:34.022157"], ["updated_at", "2015-10-28 17:06:34.022157"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-28 17:06:34.050062"], ["updated_at", "2015-10-28 17:06:34.050062"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:06:34.052594"], ["updated_at", "2015-10-28 17:06:34.052594"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.060015"], ["updated_at", "2015-10-28 17:06:34.060015"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:06:34.063747"], ["updated_at", "2015-10-28 17:06:34.063747"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:06:34.065782"], ["updated_at", "2015-10-28 17:06:34.065782"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.0ms Sent mail to user4@sleede.com (7.3ms) Date: Wed, 28 Oct 2015 18:06:34 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631009a17a75_179613ff4dc8601d036531@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-28 17:06:34.102719"], ["updated_at", "2015-10-28 17:06:34.102719"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:06:34.105068"], ["updated_at", "2015-10-28 17:06:34.105068"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.107325"], ["updated_at", "2015-10-28 17:06:34.107325"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:06:34.108539"], ["updated_at", "2015-10-28 17:06:34.108539"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:06:34.110101"], ["updated_at", "2015-10-28 17:06:34.110101"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.1ms Sent mail to user5@sleede.com (3.6ms) Date: Wed, 28 Oct 2015 18:06:34 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631009a1c70e_179613ff4dc8601d03662a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (1.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-28 17:06:34.125575"], ["updated_at", "2015-10-28 17:06:34.125575"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:06:34.127980"], ["updated_at", "2015-10-28 17:06:34.127980"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.130225"], ["updated_at", "2015-10-28 17:06:34.130225"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:06:34.131396"], ["updated_at", "2015-10-28 17:06:34.131396"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:06:34.133251"], ["updated_at", "2015-10-28 17:06:34.133251"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user6@sleede.com (1.3ms) Date: Wed, 28 Oct 2015 18:06:34 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5631009a2152f_179613ff4dc8601d036740@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-28 17:06:34.140052"], ["updated_at", "2015-10-28 17:06:34.140052"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-28 17:06:34.142126"], ["updated_at", "2015-10-28 17:06:34.142126"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-28 17:06:34.144360"], ["updated_at", "2015-10-28 17:06:34.144360"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-28 17:06:34.145515"], ["updated_at", "2015-10-28 17:06:34.145515"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-28 17:06:34.146871"], ["updated_at", "2015-10-28 17:06:34.146871"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user7@sleede.com (1.7ms) Date: Wed, 28 Oct 2015 18:06:34 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631009a24afe_179613ff4dc8601d03686d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:25:07.513895"], ["updated_at", "2015-10-29 09:25:07.513895"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:25:07.528623"], ["updated_at", "2015-10-29 09:25:07.528623"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.544270"], ["updated_at", "2015-10-29 09:25:07.544270"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:07.551165"], ["updated_at", "2015-10-29 09:25:07.551165"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:07.553885"], ["updated_at", "2015-10-29 09:25:07.553885"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:25:07.559440"], ["updated_at", "2015-10-29 09:25:07.559440"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:07.561481"], ["updated_at", "2015-10-29 09:25:07.561481"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.563684"], ["updated_at", "2015-10-29 09:25:07.563684"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:07.564865"], ["updated_at", "2015-10-29 09:25:07.564865"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:07.566277"], ["updated_at", "2015-10-29 09:25:07.566277"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:25:07.570202"], ["updated_at", "2015-10-29 09:25:07.570202"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:25:07.572182"], ["updated_at", "2015-10-29 09:25:07.572182"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.574381"], ["updated_at", "2015-10-29 09:25:07.574381"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:07.575575"], ["updated_at", "2015-10-29 09:25:07.575575"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:07.577027"], ["updated_at", "2015-10-29 09:25:07.577027"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 09:25:07.612327"], ["updated_at", "2015-10-29 09:25:07.612327"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:07.617734"], ["updated_at", "2015-10-29 09:25:07.617734"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.621133"], ["updated_at", "2015-10-29 09:25:07.621133"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:07.622993"], ["updated_at", "2015-10-29 09:25:07.622993"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:07.624915"], ["updated_at", "2015-10-29 09:25:07.624915"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 26.2ms Sent mail to user4@sleede.com (13.6ms) Date: Thu, 29 Oct 2015 10:25:07 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631e5f3a1703_22603fee254601d825747@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:25:07.669419"], ["updated_at", "2015-10-29 09:25:07.669419"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:07.671637"], ["updated_at", "2015-10-29 09:25:07.671637"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.673867"], ["updated_at", "2015-10-29 09:25:07.673867"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:07.675065"], ["updated_at", "2015-10-29 09:25:07.675065"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:07.676509"], ["updated_at", "2015-10-29 09:25:07.676509"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user5@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 10:25:07 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631e5f3a5fd6_22603fee254601d82581@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 09:25:07.684703"], ["updated_at", "2015-10-29 09:25:07.684703"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:07.686776"], ["updated_at", "2015-10-29 09:25:07.686776"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.688979"], ["updated_at", "2015-10-29 09:25:07.688979"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:07.690188"], ["updated_at", "2015-10-29 09:25:07.690188"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:07.691679"], ["updated_at", "2015-10-29 09:25:07.691679"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user6@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:25:07 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5631e5f3a9b3f_22603fee254601d825926@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 09:25:07.698774"], ["updated_at", "2015-10-29 09:25:07.698774"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:07.700856"], ["updated_at", "2015-10-29 09:25:07.700856"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:07.704716"], ["updated_at", "2015-10-29 09:25:07.704716"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:07.706961"], ["updated_at", "2015-10-29 09:25:07.706961"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:07.709378"], ["updated_at", "2015-10-29 09:25:07.709378"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user7@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:25:07 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631e5f3ae302_22603fee254601d8260cc@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:25:22.242289"], ["updated_at", "2015-10-29 09:25:22.242289"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:25:22.253216"], ["updated_at", "2015-10-29 09:25:22.253216"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.264752"], ["updated_at", "2015-10-29 09:25:22.264752"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:22.271267"], ["updated_at", "2015-10-29 09:25:22.271267"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:22.273824"], ["updated_at", "2015-10-29 09:25:22.273824"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:25:22.287328"], ["updated_at", "2015-10-29 09:25:22.287328"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:22.289545"], ["updated_at", "2015-10-29 09:25:22.289545"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.291905"], ["updated_at", "2015-10-29 09:25:22.291905"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:22.293189"], ["updated_at", "2015-10-29 09:25:22.293189"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:22.294698"], ["updated_at", "2015-10-29 09:25:22.294698"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:25:22.298386"], ["updated_at", "2015-10-29 09:25:22.298386"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:25:22.300647"], ["updated_at", "2015-10-29 09:25:22.300647"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.302979"], ["updated_at", "2015-10-29 09:25:22.302979"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:22.304234"], ["updated_at", "2015-10-29 09:25:22.304234"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:22.305860"], ["updated_at", "2015-10-29 09:25:22.305860"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 09:25:22.326927"], ["updated_at", "2015-10-29 09:25:22.326927"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:22.329350"], ["updated_at", "2015-10-29 09:25:22.329350"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.332527"], ["updated_at", "2015-10-29 09:25:22.332527"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:22.334117"], ["updated_at", "2015-10-29 09:25:22.334117"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:22.335850"], ["updated_at", "2015-10-29 09:25:22.335850"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 23.5ms Sent mail to user4@sleede.com (4.1ms) Date: Thu, 29 Oct 2015 10:25:22 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631e60259244_22653fee760601e0375f0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:25:22.369883"], ["updated_at", "2015-10-29 09:25:22.369883"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:22.372031"], ["updated_at", "2015-10-29 09:25:22.372031"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.374195"], ["updated_at", "2015-10-29 09:25:22.374195"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:22.376258"], ["updated_at", "2015-10-29 09:25:22.376258"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:22.379869"], ["updated_at", "2015-10-29 09:25:22.379869"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.0ms Sent mail to user5@sleede.com (1.8ms) Date: Thu, 29 Oct 2015 10:25:22 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631e6025dcab_22653fee760601e0376f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 09:25:22.389245"], ["updated_at", "2015-10-29 09:25:22.389245"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:22.398370"], ["updated_at", "2015-10-29 09:25:22.398370"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.402323"], ["updated_at", "2015-10-29 09:25:22.402323"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:22.403774"], ["updated_at", "2015-10-29 09:25:22.403774"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:22.405361"], ["updated_at", "2015-10-29 09:25:22.405361"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user6@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:25:22 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5631e60263bf6_22653fee760601e0377a9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 09:25:22.412615"], ["updated_at", "2015-10-29 09:25:22.412615"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:25:22.414658"], ["updated_at", "2015-10-29 09:25:22.414658"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:25:22.416913"], ["updated_at", "2015-10-29 09:25:22.416913"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:25:22.418419"], ["updated_at", "2015-10-29 09:25:22.418419"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:25:22.420794"], ["updated_at", "2015-10-29 09:25:22.420794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user7@sleede.com (1.8ms) Date: Thu, 29 Oct 2015 10:25:22 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631e60267a72_22653fee760601e037857@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:26:14.502595"], ["updated_at", "2015-10-29 09:26:14.502595"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:26:14.513362"], ["updated_at", "2015-10-29 09:26:14.513362"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.524748"], ["updated_at", "2015-10-29 09:26:14.524748"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:14.531603"], ["updated_at", "2015-10-29 09:26:14.531603"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:14.534282"], ["updated_at", "2015-10-29 09:26:14.534282"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (9.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:26:14.549076"], ["updated_at", "2015-10-29 09:26:14.549076"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:14.551295"], ["updated_at", "2015-10-29 09:26:14.551295"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.553614"], ["updated_at", "2015-10-29 09:26:14.553614"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:14.554824"], ["updated_at", "2015-10-29 09:26:14.554824"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:14.556345"], ["updated_at", "2015-10-29 09:26:14.556345"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:26:14.559957"], ["updated_at", "2015-10-29 09:26:14.559957"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:26:14.562145"], ["updated_at", "2015-10-29 09:26:14.562145"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.564240"], ["updated_at", "2015-10-29 09:26:14.564240"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:14.565352"], ["updated_at", "2015-10-29 09:26:14.565352"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:14.566733"], ["updated_at", "2015-10-29 09:26:14.566733"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 09:26:14.586321"], ["updated_at", "2015-10-29 09:26:14.586321"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:14.588815"], ["updated_at", "2015-10-29 09:26:14.588815"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.591743"], ["updated_at", "2015-10-29 09:26:14.591743"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:14.593663"], ["updated_at", "2015-10-29 09:26:14.593663"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:14.595272"], ["updated_at", "2015-10-29 09:26:14.595272"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 23.8ms Sent mail to user4@sleede.com (4.5ms) Date: Thu, 29 Oct 2015 10:26:14 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631e6369818a_22723fcef14601e07958d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:26:14.627931"], ["updated_at", "2015-10-29 09:26:14.627931"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:14.630115"], ["updated_at", "2015-10-29 09:26:14.630115"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.632384"], ["updated_at", "2015-10-29 09:26:14.632384"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:14.633611"], ["updated_at", "2015-10-29 09:26:14.633611"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:14.635105"], ["updated_at", "2015-10-29 09:26:14.635105"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.5ms Sent mail to user5@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:26:14 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631e6369c376_22723fcef14601e0796f3@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 09:26:14.644800"], ["updated_at", "2015-10-29 09:26:14.644800"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:14.647695"], ["updated_at", "2015-10-29 09:26:14.647695"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.654868"], ["updated_at", "2015-10-29 09:26:14.654868"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:14.659381"], ["updated_at", "2015-10-29 09:26:14.659381"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:14.661728"], ["updated_at", "2015-10-29 09:26:14.661728"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user6@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 10:26:14 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5631e636a26c8_22723fcef14601e079787@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 09:26:14.669286"], ["updated_at", "2015-10-29 09:26:14.669286"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:14.671604"], ["updated_at", "2015-10-29 09:26:14.671604"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:14.673964"], ["updated_at", "2015-10-29 09:26:14.673964"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:14.675204"], ["updated_at", "2015-10-29 09:26:14.675204"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:14.676710"], ["updated_at", "2015-10-29 09:26:14.676710"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user7@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:26:14 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631e636a61b5_22723fcef14601e079843@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.5ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (2.0ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (1.1ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (1.1ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:26:32.714482"], ["updated_at", "2015-10-29 09:26:32.714482"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:26:32.725494"], ["updated_at", "2015-10-29 09:26:32.725494"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.736892"], ["updated_at", "2015-10-29 09:26:32.736892"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:32.743485"], ["updated_at", "2015-10-29 09:26:32.743485"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:32.746073"], ["updated_at", "2015-10-29 09:26:32.746073"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:26:32.760672"], ["updated_at", "2015-10-29 09:26:32.760672"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:32.763475"], ["updated_at", "2015-10-29 09:26:32.763475"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.765942"], ["updated_at", "2015-10-29 09:26:32.765942"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:32.767317"], ["updated_at", "2015-10-29 09:26:32.767317"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:32.769011"], ["updated_at", "2015-10-29 09:26:32.769011"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:26:32.772736"], ["updated_at", "2015-10-29 09:26:32.772736"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:26:32.774984"], ["updated_at", "2015-10-29 09:26:32.774984"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.777168"], ["updated_at", "2015-10-29 09:26:32.777168"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:32.778372"], ["updated_at", "2015-10-29 09:26:32.778372"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:32.779821"], ["updated_at", "2015-10-29 09:26:32.779821"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 09:26:32.799799"], ["updated_at", "2015-10-29 09:26:32.799799"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:32.803135"], ["updated_at", "2015-10-29 09:26:32.803135"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.805795"], ["updated_at", "2015-10-29 09:26:32.805795"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:32.807095"], ["updated_at", "2015-10-29 09:26:32.807095"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:32.811819"], ["updated_at", "2015-10-29 09:26:32.811819"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 22.1ms Sent mail to user4@sleede.com (4.6ms) Date: Thu, 29 Oct 2015 10:26:32 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631e648cd1a6_227b3fe8f4c601d431834@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:26:32.845124"], ["updated_at", "2015-10-29 09:26:32.845124"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:32.848764"], ["updated_at", "2015-10-29 09:26:32.848764"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.852580"], ["updated_at", "2015-10-29 09:26:32.852580"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:32.854631"], ["updated_at", "2015-10-29 09:26:32.854631"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:32.857067"], ["updated_at", "2015-10-29 09:26:32.857067"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user5@sleede.com (1.2ms) Date: Thu, 29 Oct 2015 10:26:32 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631e648d21c2_227b3fe8f4c601d4319b7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 09:26:32.865273"], ["updated_at", "2015-10-29 09:26:32.865273"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:32.872399"], ["updated_at", "2015-10-29 09:26:32.872399"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.876973"], ["updated_at", "2015-10-29 09:26:32.876973"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:32.878518"], ["updated_at", "2015-10-29 09:26:32.878518"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:32.880143"], ["updated_at", "2015-10-29 09:26:32.880143"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user6@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:26:32 +0100 From: contact@sleede.com To: user6@sleede.com Message-ID: <5631e648d7ae1_227b3fe8f4c601d43206a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser6
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 09:26:32.887549"], ["updated_at", "2015-10-29 09:26:32.887549"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:26:32.889863"], ["updated_at", "2015-10-29 09:26:32.889863"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:26:32.892318"], ["updated_at", "2015-10-29 09:26:32.892318"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:26:32.893558"], ["updated_at", "2015-10-29 09:26:32.893558"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:26:32.895155"], ["updated_at", "2015-10-29 09:26:32.895155"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user7@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 10:26:32 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631e648db6f2_227b3fe8f4c601d4321bd@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (1.0ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (1.1ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:27:03.553553"], ["updated_at", "2015-10-29 09:27:03.553553"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:27:03.564518"], ["updated_at", "2015-10-29 09:27:03.564518"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:27:03.576533"], ["updated_at", "2015-10-29 09:27:03.576533"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:27:03.583330"], ["updated_at", "2015-10-29 09:27:03.583330"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:27:03.586566"], ["updated_at", "2015-10-29 09:27:03.586566"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:27:03.601745"], ["updated_at", "2015-10-29 09:27:03.601745"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:27:03.603875"], ["updated_at", "2015-10-29 09:27:03.603875"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:27:03.606133"], ["updated_at", "2015-10-29 09:27:03.606133"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:27:03.607469"], ["updated_at", "2015-10-29 09:27:03.607469"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:27:03.609098"], ["updated_at", "2015-10-29 09:27:03.609098"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:28:07.782165"], ["updated_at", "2015-10-29 09:28:07.782165"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:28:07.791867"], ["updated_at", "2015-10-29 09:28:07.791867"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:07.803424"], ["updated_at", "2015-10-29 09:28:07.803424"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:28:07.809779"], ["updated_at", "2015-10-29 09:28:07.809779"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:28:07.812270"], ["updated_at", "2015-10-29 09:28:07.812270"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:28:07.826068"], ["updated_at", "2015-10-29 09:28:07.826068"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:28:07.828351"], ["updated_at", "2015-10-29 09:28:07.828351"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:07.830693"], ["updated_at", "2015-10-29 09:28:07.830693"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:28:07.831970"], ["updated_at", "2015-10-29 09:28:07.831970"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:28:07.833472"], ["updated_at", "2015-10-29 09:28:07.833472"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:28:35.011248"], ["updated_at", "2015-10-29 09:28:35.011248"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:28:35.022403"], ["updated_at", "2015-10-29 09:28:35.022403"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:35.034227"], ["updated_at", "2015-10-29 09:28:35.034227"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:28:35.040990"], ["updated_at", "2015-10-29 09:28:35.040990"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:28:35.043484"], ["updated_at", "2015-10-29 09:28:35.043484"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:28:35.050682"], ["updated_at", "2015-10-29 09:28:35.050682"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:28:35.052720"], ["updated_at", "2015-10-29 09:28:35.052720"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:35.054691"], ["updated_at", "2015-10-29 09:28:35.054691"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:28:35.055813"], ["updated_at", "2015-10-29 09:28:35.055813"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:28:35.058180"], ["updated_at", "2015-10-29 09:28:35.058180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:28:56.203866"], ["updated_at", "2015-10-29 09:28:56.203866"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:28:56.214673"], ["updated_at", "2015-10-29 09:28:56.214673"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:56.227586"], ["updated_at", "2015-10-29 09:28:56.227586"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:28:56.234408"], ["updated_at", "2015-10-29 09:28:56.234408"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:28:56.237005"], ["updated_at", "2015-10-29 09:28:56.237005"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:28:56.250854"], ["updated_at", "2015-10-29 09:28:56.250854"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:28:56.252952"], ["updated_at", "2015-10-29 09:28:56.252952"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:28:56.255244"], ["updated_at", "2015-10-29 09:28:56.255244"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:28:56.256546"], ["updated_at", "2015-10-29 09:28:56.256546"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:28:56.258043"], ["updated_at", "2015-10-29 09:28:56.258043"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:29:56.710712"], ["updated_at", "2015-10-29 09:29:56.710712"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:29:56.722844"], ["updated_at", "2015-10-29 09:29:56.722844"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:29:56.736314"], ["updated_at", "2015-10-29 09:29:56.736314"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:29:56.743006"], ["updated_at", "2015-10-29 09:29:56.743006"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:29:56.745689"], ["updated_at", "2015-10-29 09:29:56.745689"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:29:56.759279"], ["updated_at", "2015-10-29 09:29:56.759279"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:29:56.761628"], ["updated_at", "2015-10-29 09:29:56.761628"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:29:56.764048"], ["updated_at", "2015-10-29 09:29:56.764048"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:29:56.765362"], ["updated_at", "2015-10-29 09:29:56.765362"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:29:56.766920"], ["updated_at", "2015-10-29 09:29:56.766920"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:30:21.117547"], ["updated_at", "2015-10-29 09:30:21.117547"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:30:21.129140"], ["updated_at", "2015-10-29 09:30:21.129140"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:30:21.141743"], ["updated_at", "2015-10-29 09:30:21.141743"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:30:21.151711"], ["updated_at", "2015-10-29 09:30:21.151711"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:30:21.154691"], ["updated_at", "2015-10-29 09:30:21.154691"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (9.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:30:21.168798"], ["updated_at", "2015-10-29 09:30:21.168798"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:30:21.171040"], ["updated_at", "2015-10-29 09:30:21.171040"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:30:21.173465"], ["updated_at", "2015-10-29 09:30:21.173465"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:30:21.174833"], ["updated_at", "2015-10-29 09:30:21.174833"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:30:21.176431"], ["updated_at", "2015-10-29 09:30:21.176431"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.7ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:30:50.038659"], ["updated_at", "2015-10-29 09:30:50.038659"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:30:50.052178"], ["updated_at", "2015-10-29 09:30:50.052178"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:30:50.064521"], ["updated_at", "2015-10-29 09:30:50.064521"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:30:50.072006"], ["updated_at", "2015-10-29 09:30:50.072006"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:30:50.074992"], ["updated_at", "2015-10-29 09:30:50.074992"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:30:50.089847"], ["updated_at", "2015-10-29 09:30:50.089847"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:30:50.092121"], ["updated_at", "2015-10-29 09:30:50.092121"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:30:50.094557"], ["updated_at", "2015-10-29 09:30:50.094557"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:30:50.095959"], ["updated_at", "2015-10-29 09:30:50.095959"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:30:50.097620"], ["updated_at", "2015-10-29 09:30:50.097620"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:33:09.984240"], ["updated_at", "2015-10-29 09:33:09.984240"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:33:09.998152"], ["updated_at", "2015-10-29 09:33:09.998152"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:33:10.012265"], ["updated_at", "2015-10-29 09:33:10.012265"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:33:10.020711"], ["updated_at", "2015-10-29 09:33:10.020711"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:33:10.024237"], ["updated_at", "2015-10-29 09:33:10.024237"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:33:10.037861"], ["updated_at", "2015-10-29 09:33:10.037861"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:33:10.040503"], ["updated_at", "2015-10-29 09:33:10.040503"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:33:10.043605"], ["updated_at", "2015-10-29 09:33:10.043605"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:33:10.045237"], ["updated_at", "2015-10-29 09:33:10.045237"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:33:10.047183"], ["updated_at", "2015-10-29 09:33:10.047183"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 20.4ms [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[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 ('20151028111239') [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:33:59.755522"], ["updated_at", "2015-10-29 09:33:59.755522"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:33:59.767674"], ["updated_at", "2015-10-29 09:33:59.767674"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:33:59.780329"], ["updated_at", "2015-10-29 09:33:59.780329"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:33:59.787695"], ["updated_at", "2015-10-29 09:33:59.787695"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:33:59.790462"], ["updated_at", "2015-10-29 09:33:59.790462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (9.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:33:59.805137"], ["updated_at", "2015-10-29 09:33:59.805137"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:33:59.807806"], ["updated_at", "2015-10-29 09:33:59.807806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:33:59.810260"], ["updated_at", "2015-10-29 09:33:59.810260"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:33:59.811505"], ["updated_at", "2015-10-29 09:33:59.811505"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:33:59.812969"], ["updated_at", "2015-10-29 09:33:59.812969"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.9ms [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:34:32.169279"], ["updated_at", "2015-10-29 09:34:32.169279"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:34:32.182759"], ["updated_at", "2015-10-29 09:34:32.182759"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:34:32.195781"], ["updated_at", "2015-10-29 09:34:32.195781"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:34:32.202956"], ["updated_at", "2015-10-29 09:34:32.202956"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:34:32.205896"], ["updated_at", "2015-10-29 09:34:32.205896"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:34:32.220478"], ["updated_at", "2015-10-29 09:34:32.220478"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:34:32.222623"], ["updated_at", "2015-10-29 09:34:32.222623"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:34:32.224924"], ["updated_at", "2015-10-29 09:34:32.224924"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:34:32.226327"], ["updated_at", "2015-10-29 09:34:32.226327"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:34:32.228064"], ["updated_at", "2015-10-29 09:34:32.228064"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.9ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.4ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.4ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:35:23.388747"], ["updated_at", "2015-10-29 09:35:23.388747"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:35:23.400299"], ["updated_at", "2015-10-29 09:35:23.400299"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:35:23.413505"], ["updated_at", "2015-10-29 09:35:23.413505"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:35:23.420819"], ["updated_at", "2015-10-29 09:35:23.420819"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:35:23.423610"], ["updated_at", "2015-10-29 09:35:23.423610"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:35:23.436187"], ["updated_at", "2015-10-29 09:35:23.436187"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:35:23.438761"], ["updated_at", "2015-10-29 09:35:23.438761"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:35:23.441263"], ["updated_at", "2015-10-29 09:35:23.441263"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:35:23.442555"], ["updated_at", "2015-10-29 09:35:23.442555"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:35:23.444213"], ["updated_at", "2015-10-29 09:35:23.444213"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.9ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.9ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.6ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:37:13.036530"], ["updated_at", "2015-10-29 09:37:13.036530"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:37:13.048848"], ["updated_at", "2015-10-29 09:37:13.048848"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.061028"], ["updated_at", "2015-10-29 09:37:13.061028"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:13.068213"], ["updated_at", "2015-10-29 09:37:13.068213"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:13.071127"], ["updated_at", "2015-10-29 09:37:13.071127"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:37:13.084511"], ["updated_at", "2015-10-29 09:37:13.084511"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:13.086794"], ["updated_at", "2015-10-29 09:37:13.086794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.089107"], ["updated_at", "2015-10-29 09:37:13.089107"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:13.090492"], ["updated_at", "2015-10-29 09:37:13.090492"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:13.092084"], ["updated_at", "2015-10-29 09:37:13.092084"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.8ms Sent mail to user2@sleede.com (4.3ms) Date: Thu, 29 Oct 2015 10:37:13 +0100 From: contact@sleede.com To: user2@sleede.com Message-ID: <5631e8c91be0d_23263ff6a20601d46403@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser2
message body
[1m[36m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:37:13.119989"], ["updated_at", "2015-10-29 09:37:13.119989"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:13.122390"], ["updated_at", "2015-10-29 09:37:13.122390"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.125187"], ["updated_at", "2015-10-29 09:37:13.125187"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:13.127016"], ["updated_at", "2015-10-29 09:37:13.127016"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:13.128850"], ["updated_at", "2015-10-29 09:37:13.128850"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 7.3ms Sent mail to user3@sleede.com (1.6ms) Date: Thu, 29 Oct 2015 10:37:13 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5631e8c9226b5_23263ff6a20601d4641d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 09:37:13.145565"], ["updated_at", "2015-10-29 09:37:13.145565"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:13.147654"], ["updated_at", "2015-10-29 09:37:13.147654"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.149926"], ["updated_at", "2015-10-29 09:37:13.149926"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:13.151192"], ["updated_at", "2015-10-29 09:37:13.151192"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:13.152699"], ["updated_at", "2015-10-29 09:37:13.152699"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.4ms Sent mail to user4@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 10:37:13 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631e8c9264ae_23263ff6a20601d464292@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:37:13.160612"], ["updated_at", "2015-10-29 09:37:13.160612"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:13.162703"], ["updated_at", "2015-10-29 09:37:13.162703"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:13.164880"], ["updated_at", "2015-10-29 09:37:13.164880"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:13.166156"], ["updated_at", "2015-10-29 09:37:13.166156"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:13.167679"], ["updated_at", "2015-10-29 09:37:13.167679"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 22.1ms Sent mail to user5@sleede.com (4.5ms) Date: Thu, 29 Oct 2015 10:37:13 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631e8c92f8d8_23263ff6a20601d4643ae@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.4ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:37:22.011372"], ["updated_at", "2015-10-29 09:37:22.011372"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:37:22.023253"], ["updated_at", "2015-10-29 09:37:22.023253"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.034967"], ["updated_at", "2015-10-29 09:37:22.034967"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:22.041475"], ["updated_at", "2015-10-29 09:37:22.041475"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:22.044282"], ["updated_at", "2015-10-29 09:37:22.044282"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:37:22.057782"], ["updated_at", "2015-10-29 09:37:22.057782"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:22.060389"], ["updated_at", "2015-10-29 09:37:22.060389"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.062739"], ["updated_at", "2015-10-29 09:37:22.062739"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:22.063948"], ["updated_at", "2015-10-29 09:37:22.063948"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:22.065465"], ["updated_at", "2015-10-29 09:37:22.065465"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.9ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 17.0ms Sent mail to user2@sleede.com (4.5ms) Date: Thu, 29 Oct 2015 10:37:22 +0100 From: contact@sleede.com To: user2@sleede.com Message-ID: <5631e8d215291_232a3fbfb44601dc558c5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser2
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:37:22.093814"], ["updated_at", "2015-10-29 09:37:22.093814"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:22.096131"], ["updated_at", "2015-10-29 09:37:22.096131"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.098631"], ["updated_at", "2015-10-29 09:37:22.098631"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:22.100046"], ["updated_at", "2015-10-29 09:37:22.100046"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:22.102522"], ["updated_at", "2015-10-29 09:37:22.102522"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.3ms Sent mail to user3@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:37:22 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5631e8d21a728_232a3fbfb44601dc559ee@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 09:37:22.113755"], ["updated_at", "2015-10-29 09:37:22.113755"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:22.116635"], ["updated_at", "2015-10-29 09:37:22.116635"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.119835"], ["updated_at", "2015-10-29 09:37:22.119835"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:22.121292"], ["updated_at", "2015-10-29 09:37:22.121292"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:22.122949"], ["updated_at", "2015-10-29 09:37:22.122949"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user4@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:37:22 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631e8d21ee8d_232a3fbfb44601dc56088@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:37:22.132457"], ["updated_at", "2015-10-29 09:37:22.132457"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:37:22.140417"], ["updated_at", "2015-10-29 09:37:22.140417"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:37:22.143460"], ["updated_at", "2015-10-29 09:37:22.143460"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:37:22.144788"], ["updated_at", "2015-10-29 09:37:22.144788"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:37:22.146871"], ["updated_at", "2015-10-29 09:37:22.146871"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user5@sleede.com (2.2ms) Date: Thu, 29 Oct 2015 10:37:22 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631e8d224d5b_232a3fbfb44601dc56151@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (8.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 09:38:52.824200"], ["updated_at", "2015-10-29 09:38:52.824200"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:52.838040"], ["updated_at", "2015-10-29 09:38:52.838040"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.851137"], ["updated_at", "2015-10-29 09:38:52.851137"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:52.865571"], ["updated_at", "2015-10-29 09:38:52.865571"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:52.868906"], ["updated_at", "2015-10-29 09:38:52.868906"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#index as JSON Rendered api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 17ms (Views: 7.3ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 09:38:52.905787"], ["updated_at", "2015-10-29 09:38:52.905787"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:52.907942"], ["updated_at", "2015-10-29 09:38:52.907942"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.910282"], ["updated_at", "2015-10-29 09:38:52.910282"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:52.911667"], ["updated_at", "2015-10-29 09:38:52.911667"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:52.913307"], ["updated_at", "2015-10-29 09:38:52.913307"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered api/notifications/index.json.jbuilder (13.2ms) Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.3ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 09:38:52.936218"], ["updated_at", "2015-10-29 09:38:52.936218"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:52.938434"], ["updated_at", "2015-10-29 09:38:52.938434"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.943187"], ["updated_at", "2015-10-29 09:38:52.943187"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:52.945326"], ["updated_at", "2015-10-29 09:38:52.945326"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:52.947840"], ["updated_at", "2015-10-29 09:38:52.947840"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.3ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered api/notifications/show.json.jbuilder (7.9ms) Completed 200 OK in 15ms (Views: 12.5ms | ActiveRecord: 0.5ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 09:38:52.970601"], ["updated_at", "2015-10-29 09:38:52.970601"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:52.972895"], ["updated_at", "2015-10-29 09:38:52.972895"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.975318"], ["updated_at", "2015-10-29 09:38:52.975318"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:52.976647"], ["updated_at", "2015-10-29 09:38:52.976647"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:52.978493"], ["updated_at", "2015-10-29 09:38:52.978493"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by API::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 09:38:52.990697"], ["updated_at", "2015-10-29 09:38:52.990697"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:52.992923"], ["updated_at", "2015-10-29 09:38:52.992923"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:52.995438"], ["updated_at", "2015-10-29 09:38:52.995438"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:52.996683"], ["updated_at", "2015-10-29 09:38:52.996683"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:52.998176"], ["updated_at", "2015-10-29 09:38:52.998176"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by API::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.3ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.4ms) [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 09:38:53.145768"], ["updated_at", "2015-10-29 09:38:53.145768"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.148120"], ["updated_at", "2015-10-29 09:38:53.148120"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.150419"], ["updated_at", "2015-10-29 09:38:53.150419"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.151650"], ["updated_at", "2015-10-29 09:38:53.151650"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.153538"], ["updated_at", "2015-10-29 09:38:53.153538"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 09:38:53.167226"], ["updated_at", "2015-10-29 09:38:53.167226"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.169613"], ["updated_at", "2015-10-29 09:38:53.169613"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.172129"], ["updated_at", "2015-10-29 09:38:53.172129"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.173541"], ["updated_at", "2015-10-29 09:38:53.173541"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.175503"], ["updated_at", "2015-10-29 09:38:53.175503"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 16.2ms Sent mail to user7@sleede.com (5.1ms) Date: Thu, 29 Oct 2015 10:38:53 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631e92d300c6_234b3fdd2c4601d8159da@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (1.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 09:38:53.203934"], ["updated_at", "2015-10-29 09:38:53.203934"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.206966"], ["updated_at", "2015-10-29 09:38:53.206966"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.209779"], ["updated_at", "2015-10-29 09:38:53.209779"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.211210"], ["updated_at", "2015-10-29 09:38:53.211210"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.212941"], ["updated_at", "2015-10-29 09:38:53.212941"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (4.4ms) Date: Thu, 29 Oct 2015 10:38:53 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631e92d34e16_234b3fdd2c4601d816067@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (1.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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 09:38:53.227174"], ["updated_at", "2015-10-29 09:38:53.227174"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.229494"], ["updated_at", "2015-10-29 09:38:53.229494"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.231989"], ["updated_at", "2015-10-29 09:38:53.231989"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.233356"], ["updated_at", "2015-10-29 09:38:53.233356"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.234958"], ["updated_at", "2015-10-29 09:38:53.234958"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:38:53 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631e92d3a1ff_234b3fdd2c4601d81612d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 09:38:53.241874"], ["updated_at", "2015-10-29 09:38:53.241874"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.243937"], ["updated_at", "2015-10-29 09:38:53.243937"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.246134"], ["updated_at", "2015-10-29 09:38:53.246134"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.247331"], ["updated_at", "2015-10-29 09:38:53.247331"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.248760"], ["updated_at", "2015-10-29 09:38:53.248760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user10@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 10:38:53 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631e92d3d86a_234b3fdd2c4601d816290@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.256699"], ["updated_at", "2015-10-29 09:38:53.256699"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 09:38:53.259091"], ["updated_at", "2015-10-29 09:38:53.259091"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.262688"], ["updated_at", "2015-10-29 09:38:53.262688"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.264121"], ["updated_at", "2015-10-29 09:38:53.264121"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 09:38:53.267459"], ["updated_at", "2015-10-29 09:38:53.267459"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.271174"], ["updated_at", "2015-10-29 09:38:53.271174"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.275549"], ["updated_at", "2015-10-29 09:38:53.275549"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.278394"], ["updated_at", "2015-10-29 09:38:53.278394"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.281841"], ["updated_at", "2015-10-29 09:38:53.281841"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 09:38:53.283400"], ["updated_at", "2015-10-29 09:38:53.283400"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.285590"], ["updated_at", "2015-10-29 09:38:53.285590"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.286786"], ["updated_at", "2015-10-29 09:38:53.286786"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 09:38:53.288429"], ["updated_at", "2015-10-29 09:38:53.288429"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.290445"], ["updated_at", "2015-10-29 09:38:53.290445"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.292380"], ["updated_at", "2015-10-29 09:38:53.292380"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.294389"], ["updated_at", "2015-10-29 09:38:53.294389"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.298226"], ["updated_at", "2015-10-29 09:38:53.298226"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 09:38:53.299998"], ["updated_at", "2015-10-29 09:38:53.299998"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.302306"], ["updated_at", "2015-10-29 09:38:53.302306"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.303765"], ["updated_at", "2015-10-29 09:38:53.303765"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.308551"], ["updated_at", "2015-10-29 09:38:53.308551"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms Sent mail to user15@sleede.com (1.6ms) Date: Thu, 29 Oct 2015 10:38:53 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631e92d4c687_234b3fdd2c4601d8163f4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.319961"], ["updated_at", "2015-10-29 09:38:53.319961"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 09:38:53.324729"], ["updated_at", "2015-10-29 09:38:53.324729"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.329439"], ["updated_at", "2015-10-29 09:38:53.329439"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.330925"], ["updated_at", "2015-10-29 09:38:53.330925"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.333094"], ["updated_at", "2015-10-29 09:38:53.333094"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c34f373d-b313-4872-b9d5-d8cc3a1afe4e) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] NotificationsMailer#send_mail_by: processed outbound mail in 5.1ms [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] Sent mail to user16@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] Date: Thu, 29 Oct 2015 10:38:53 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631e92d577ed_234b3fdd2c4601d8164c0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [c34f373d-b313-4872-b9d5-d8cc3a1afe4e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.31ms [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.362270"], ["updated_at", "2015-10-29 09:38:53.362270"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 09:38:53.363917"], ["updated_at", "2015-10-29 09:38:53.363917"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.369699"], ["updated_at", "2015-10-29 09:38:53.369699"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.375079"], ["updated_at", "2015-10-29 09:38:53.375079"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.382513"], ["updated_at", "2015-10-29 09:38:53.382513"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 09:38:53.384280"], ["updated_at", "2015-10-29 09:38:53.384280"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.386602"], ["updated_at", "2015-10-29 09:38:53.386602"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.387846"], ["updated_at", "2015-10-29 09:38:53.387846"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.393633"], ["updated_at", "2015-10-29 09:38:53.393633"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 09:38:53.395391"], ["updated_at", "2015-10-29 09:38:53.395391"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.397774"], ["updated_at", "2015-10-29 09:38:53.397774"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.399081"], ["updated_at", "2015-10-29 09:38:53.399081"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 09:38:53.400530"], ["updated_at", "2015-10-29 09:38:53.400530"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.402287"], ["updated_at", "2015-10-29 09:38:53.402287"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.404123"], ["updated_at", "2015-10-29 09:38:53.404123"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.407519"], ["updated_at", "2015-10-29 09:38:53.407519"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.412566"], ["updated_at", "2015-10-29 09:38:53.412566"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 09:38:53.414123"], ["updated_at", "2015-10-29 09:38:53.414123"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.418811"], ["updated_at", "2015-10-29 09:38:53.418811"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.424126"], ["updated_at", "2015-10-29 09:38:53.424126"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 09:38:53.428117"], ["updated_at", "2015-10-29 09:38:53.428117"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.429641"], ["updated_at", "2015-10-29 09:38:53.429641"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.431174"], ["updated_at", "2015-10-29 09:38:53.431174"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.433061"], ["updated_at", "2015-10-29 09:38:53.433061"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.436448"], ["updated_at", "2015-10-29 09:38:53.436448"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 09:38:53.438348"], ["updated_at", "2015-10-29 09:38:53.438348"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.440703"], ["updated_at", "2015-10-29 09:38:53.440703"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.441950"], ["updated_at", "2015-10-29 09:38:53.441950"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 09:38:53.443439"], ["updated_at", "2015-10-29 09:38:53.443439"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.445512"], ["updated_at", "2015-10-29 09:38:53.445512"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.447144"], ["updated_at", "2015-10-29 09:38:53.447144"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 09:38:53.449093"], ["updated_at", "2015-10-29 09:38:53.449093"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.460929"], ["updated_at", "2015-10-29 09:38:53.460929"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 09:38:53.462802"], ["updated_at", "2015-10-29 09:38:53.462802"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.464821"], ["updated_at", "2015-10-29 09:38:53.464821"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.466411"], ["updated_at", "2015-10-29 09:38:53.466411"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.474937"], ["updated_at", "2015-10-29 09:38:53.474937"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.479568"], ["updated_at", "2015-10-29 09:38:53.479568"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 09:38:53.481272"], ["updated_at", "2015-10-29 09:38:53.481272"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.483671"], ["updated_at", "2015-10-29 09:38:53.483671"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.484887"], ["updated_at", "2015-10-29 09:38:53.484887"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 09:38:53.486302"], ["updated_at", "2015-10-29 09:38:53.486302"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.487413"], ["updated_at", "2015-10-29 09:38:53.487413"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.488924"], ["updated_at", "2015-10-29 09:38:53.488924"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.492721"], ["updated_at", "2015-10-29 09:38:53.492721"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 09:38:53.494249"], ["updated_at", "2015-10-29 09:38:53.494249"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.496397"], ["updated_at", "2015-10-29 09:38:53.496397"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.497592"], ["updated_at", "2015-10-29 09:38:53.497592"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 09:38:53.499038"], ["updated_at", "2015-10-29 09:38:53.499038"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.500147"], ["updated_at", "2015-10-29 09:38:53.500147"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 09:38:53.501412"], ["updated_at", "2015-10-29 09:38:53.501412"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.506890"], ["updated_at", "2015-10-29 09:38:53.506890"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 09:38:53.509261"], ["updated_at", "2015-10-29 09:38:53.509261"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 09:38:53.512595"], ["updated_at", "2015-10-29 09:38:53.512595"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 09:38:53.513834"], ["updated_at", "2015-10-29 09:38:53.513834"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 09:38:53.517083"], ["updated_at", "2015-10-29 09:38:53.517083"]] [1m[36m (0.4ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 09:38:53.521509"], ["updated_at", "2015-10-29 09:38:53.521509"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 09:38:53.526507"], ["updated_at", "2015-10-29 09:38:53.526507"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (1.0ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:04:24.682166"], ["updated_at", "2015-10-29 10:04:24.682166"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:24.698958"], ["updated_at", "2015-10-29 10:04:24.698958"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.4ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.723657"], ["updated_at", "2015-10-29 10:04:24.723657"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:24.732882"], ["updated_at", "2015-10-29 10:04:24.732882"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:24.735924"], ["updated_at", "2015-10-29 10:04:24.735924"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:04:24.754464"], ["updated_at", "2015-10-29 10:04:24.754464"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:24.756436"], ["updated_at", "2015-10-29 10:04:24.756436"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.758744"], ["updated_at", "2015-10-29 10:04:24.758744"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:24.760349"], ["updated_at", "2015-10-29 10:04:24.760349"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:24.761905"], ["updated_at", "2015-10-29 10:04:24.761905"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:04:24.767394"], ["updated_at", "2015-10-29 10:04:24.767394"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:24.769331"], ["updated_at", "2015-10-29 10:04:24.769331"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.771440"], ["updated_at", "2015-10-29 10:04:24.771440"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:24.772703"], ["updated_at", "2015-10-29 10:04:24.772703"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:24.774155"], ["updated_at", "2015-10-29 10:04:24.774155"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:04:24.780148"], ["updated_at", "2015-10-29 10:04:24.780148"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:24.782319"], ["updated_at", "2015-10-29 10:04:24.782319"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.784894"], ["updated_at", "2015-10-29 10:04:24.784894"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:24.786127"], ["updated_at", "2015-10-29 10:04:24.786127"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:24.788242"], ["updated_at", "2015-10-29 10:04:24.788242"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:04:24.796158"], ["updated_at", "2015-10-29 10:04:24.796158"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:24.798391"], ["updated_at", "2015-10-29 10:04:24.798391"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.802617"], ["updated_at", "2015-10-29 10:04:24.802617"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:24.806778"], ["updated_at", "2015-10-29 10:04:24.806778"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:24.812213"], ["updated_at", "2015-10-29 10:04:24.812213"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:04:24.968972"], ["updated_at", "2015-10-29 10:04:24.968972"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:24.971202"], ["updated_at", "2015-10-29 10:04:24.971202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.973553"], ["updated_at", "2015-10-29 10:04:24.973553"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:24.974865"], ["updated_at", "2015-10-29 10:04:24.974865"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:24.976597"], ["updated_at", "2015-10-29 10:04:24.976597"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:04:24.982209"], ["updated_at", "2015-10-29 10:04:24.982209"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:24.984220"], ["updated_at", "2015-10-29 10:04:24.984220"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:24.986269"], ["updated_at", "2015-10-29 10:04:24.986269"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:24.987468"], ["updated_at", "2015-10-29 10:04:24.987468"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:24.988897"], ["updated_at", "2015-10-29 10:04:24.988897"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.6ms Sent mail to user7@sleede.com (7.2ms) Date: Thu, 29 Oct 2015 11:04:25 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631ef2954e6_250b3fcec84601dc305e2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:04:25.027243"], ["updated_at", "2015-10-29 10:04:25.027243"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.031855"], ["updated_at", "2015-10-29 10:04:25.031855"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.039123"], ["updated_at", "2015-10-29 10:04:25.039123"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.041047"], ["updated_at", "2015-10-29 10:04:25.041047"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.042833"], ["updated_at", "2015-10-29 10:04:25.042833"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user8@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:04:25 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631ef29b5c7_250b3fcec84601dc30641@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:04:25.051481"], ["updated_at", "2015-10-29 10:04:25.051481"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.053555"], ["updated_at", "2015-10-29 10:04:25.053555"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.055940"], ["updated_at", "2015-10-29 10:04:25.055940"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.057175"], ["updated_at", "2015-10-29 10:04:25.057175"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.058670"], ["updated_at", "2015-10-29 10:04:25.058670"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:04:25 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631ef29f313_250b3fcec84601dc307f5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:04:25.066231"], ["updated_at", "2015-10-29 10:04:25.066231"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.070366"], ["updated_at", "2015-10-29 10:04:25.070366"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.073550"], ["updated_at", "2015-10-29 10:04:25.073550"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.075288"], ["updated_at", "2015-10-29 10:04:25.075288"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.076914"], ["updated_at", "2015-10-29 10:04:25.076914"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms Sent mail to user10@sleede.com (3.7ms) Date: Thu, 29 Oct 2015 11:04:25 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631ef2914cd2_250b3fcec84601dc30866@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.091004"], ["updated_at", "2015-10-29 10:04:25.091004"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:04:25.092841"], ["updated_at", "2015-10-29 10:04:25.092841"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.095373"], ["updated_at", "2015-10-29 10:04:25.095373"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.096740"], ["updated_at", "2015-10-29 10:04:25.096740"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:04:25.098332"], ["updated_at", "2015-10-29 10:04:25.098332"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.099827"], ["updated_at", "2015-10-29 10:04:25.099827"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.101196"], ["updated_at", "2015-10-29 10:04:25.101196"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.102797"], ["updated_at", "2015-10-29 10:04:25.102797"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.105775"], ["updated_at", "2015-10-29 10:04:25.105775"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:04:25.107238"], ["updated_at", "2015-10-29 10:04:25.107238"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.109235"], ["updated_at", "2015-10-29 10:04:25.109235"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.110342"], ["updated_at", "2015-10-29 10:04:25.110342"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:04:25.111723"], ["updated_at", "2015-10-29 10:04:25.111723"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.112838"], ["updated_at", "2015-10-29 10:04:25.112838"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.114448"], ["updated_at", "2015-10-29 10:04:25.114448"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.116815"], ["updated_at", "2015-10-29 10:04:25.116815"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.120244"], ["updated_at", "2015-10-29 10:04:25.120244"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:04:25.121862"], ["updated_at", "2015-10-29 10:04:25.121862"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.124034"], ["updated_at", "2015-10-29 10:04:25.124034"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.126908"], ["updated_at", "2015-10-29 10:04:25.126908"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.131365"], ["updated_at", "2015-10-29 10:04:25.131365"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user15@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:04:25 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631ef2920f99_250b3fcec84601dc30971@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.138413"], ["updated_at", "2015-10-29 10:04:25.138413"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:04:25.139922"], ["updated_at", "2015-10-29 10:04:25.139922"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.142132"], ["updated_at", "2015-10-29 10:04:25.142132"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.143263"], ["updated_at", "2015-10-29 10:04:25.143263"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.148050"], ["updated_at", "2015-10-29 10:04:25.148050"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 07ae6cd7-b068-46b6-83a9-771a23227b51) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] NotificationsMailer#send_mail_by: processed outbound mail in 5.6ms [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] Sent mail to user16@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] Date: Thu, 29 Oct 2015 11:04:25 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631ef292b8f8_250b3fcec84601dc31016@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [07ae6cd7-b068-46b6-83a9-771a23227b51] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.33ms [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.182961"], ["updated_at", "2015-10-29 10:04:25.182961"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:04:25.184954"], ["updated_at", "2015-10-29 10:04:25.184954"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.187915"], ["updated_at", "2015-10-29 10:04:25.187915"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.189531"], ["updated_at", "2015-10-29 10:04:25.189531"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.197577"], ["updated_at", "2015-10-29 10:04:25.197577"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:04:25.200521"], ["updated_at", "2015-10-29 10:04:25.200521"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.206661"], ["updated_at", "2015-10-29 10:04:25.206661"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.208388"], ["updated_at", "2015-10-29 10:04:25.208388"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.212753"], ["updated_at", "2015-10-29 10:04:25.212753"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:04:25.214464"], ["updated_at", "2015-10-29 10:04:25.214464"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.217121"], ["updated_at", "2015-10-29 10:04:25.217121"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.218454"], ["updated_at", "2015-10-29 10:04:25.218454"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:04:25.219818"], ["updated_at", "2015-10-29 10:04:25.219818"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.220930"], ["updated_at", "2015-10-29 10:04:25.220930"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.222660"], ["updated_at", "2015-10-29 10:04:25.222660"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.224546"], ["updated_at", "2015-10-29 10:04:25.224546"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.229125"], ["updated_at", "2015-10-29 10:04:25.229125"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:04:25.230840"], ["updated_at", "2015-10-29 10:04:25.230840"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.235754"], ["updated_at", "2015-10-29 10:04:25.235754"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.238248"], ["updated_at", "2015-10-29 10:04:25.238248"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:04:25.240633"], ["updated_at", "2015-10-29 10:04:25.240633"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.242513"], ["updated_at", "2015-10-29 10:04:25.242513"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.244004"], ["updated_at", "2015-10-29 10:04:25.244004"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.247812"], ["updated_at", "2015-10-29 10:04:25.247812"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.256478"], ["updated_at", "2015-10-29 10:04:25.256478"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:04:25.258547"], ["updated_at", "2015-10-29 10:04:25.258547"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.261135"], ["updated_at", "2015-10-29 10:04:25.261135"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.262436"], ["updated_at", "2015-10-29 10:04:25.262436"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:04:25.264429"], ["updated_at", "2015-10-29 10:04:25.264429"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.265933"], ["updated_at", "2015-10-29 10:04:25.265933"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.267928"], ["updated_at", "2015-10-29 10:04:25.267928"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:04:25.269940"], ["updated_at", "2015-10-29 10:04:25.269940"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.284508"], ["updated_at", "2015-10-29 10:04:25.284508"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:04:25.286467"], ["updated_at", "2015-10-29 10:04:25.286467"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.288612"], ["updated_at", "2015-10-29 10:04:25.288612"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.291284"], ["updated_at", "2015-10-29 10:04:25.291284"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.295007"], ["updated_at", "2015-10-29 10:04:25.295007"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.299703"], ["updated_at", "2015-10-29 10:04:25.299703"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:04:25.304302"], ["updated_at", "2015-10-29 10:04:25.304302"]] [1m[35m (0.3ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.311353"], ["updated_at", "2015-10-29 10:04:25.311353"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.312974"], ["updated_at", "2015-10-29 10:04:25.312974"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:04:25.314626"], ["updated_at", "2015-10-29 10:04:25.314626"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.315881"], ["updated_at", "2015-10-29 10:04:25.315881"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.317221"], ["updated_at", "2015-10-29 10:04:25.317221"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.320992"], ["updated_at", "2015-10-29 10:04:25.320992"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:04:25.322581"], ["updated_at", "2015-10-29 10:04:25.322581"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.324811"], ["updated_at", "2015-10-29 10:04:25.324811"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.326032"], ["updated_at", "2015-10-29 10:04:25.326032"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:04:25.327450"], ["updated_at", "2015-10-29 10:04:25.327450"]] [1m[36m (0.0ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.328596"], ["updated_at", "2015-10-29 10:04:25.328596"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:04:25.330008"], ["updated_at", "2015-10-29 10:04:25.330008"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.333984"], ["updated_at", "2015-10-29 10:04:25.333984"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:04:25.335479"], ["updated_at", "2015-10-29 10:04:25.335479"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:04:25.339120"], ["updated_at", "2015-10-29 10:04:25.339120"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:04:25.341090"], ["updated_at", "2015-10-29 10:04:25.341090"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:04:25.343652"], ["updated_at", "2015-10-29 10:04:25.343652"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:04:25.345459"], ["updated_at", "2015-10-29 10:04:25.345459"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:04:25.347009"], ["updated_at", "2015-10-29 10:04:25.347009"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:13:12.665188"], ["updated_at", "2015-10-29 10:13:12.665188"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:12.681537"], ["updated_at", "2015-10-29 10:13:12.681537"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.705017"], ["updated_at", "2015-10-29 10:13:12.705017"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:12.712817"], ["updated_at", "2015-10-29 10:13:12.712817"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:12.715631"], ["updated_at", "2015-10-29 10:13:12.715631"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:13:12.732831"], ["updated_at", "2015-10-29 10:13:12.732831"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:12.734924"], ["updated_at", "2015-10-29 10:13:12.734924"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.737337"], ["updated_at", "2015-10-29 10:13:12.737337"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:12.738631"], ["updated_at", "2015-10-29 10:13:12.738631"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:12.740341"], ["updated_at", "2015-10-29 10:13:12.740341"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:13:12.746414"], ["updated_at", "2015-10-29 10:13:12.746414"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:12.748623"], ["updated_at", "2015-10-29 10:13:12.748623"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.750925"], ["updated_at", "2015-10-29 10:13:12.750925"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:12.752293"], ["updated_at", "2015-10-29 10:13:12.752293"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:12.753947"], ["updated_at", "2015-10-29 10:13:12.753947"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:13:12.759509"], ["updated_at", "2015-10-29 10:13:12.759509"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:12.761641"], ["updated_at", "2015-10-29 10:13:12.761641"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.764066"], ["updated_at", "2015-10-29 10:13:12.764066"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:12.765360"], ["updated_at", "2015-10-29 10:13:12.765360"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:12.768858"], ["updated_at", "2015-10-29 10:13:12.768858"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:13:12.774920"], ["updated_at", "2015-10-29 10:13:12.774920"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:12.777453"], ["updated_at", "2015-10-29 10:13:12.777453"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.779807"], ["updated_at", "2015-10-29 10:13:12.779807"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:12.781072"], ["updated_at", "2015-10-29 10:13:12.781072"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:12.782526"], ["updated_at", "2015-10-29 10:13:12.782526"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:13:12.940983"], ["updated_at", "2015-10-29 10:13:12.940983"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:12.943187"], ["updated_at", "2015-10-29 10:13:12.943187"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.945402"], ["updated_at", "2015-10-29 10:13:12.945402"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:12.946665"], ["updated_at", "2015-10-29 10:13:12.946665"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:12.948102"], ["updated_at", "2015-10-29 10:13:12.948102"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:13:12.953464"], ["updated_at", "2015-10-29 10:13:12.953464"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:12.955543"], ["updated_at", "2015-10-29 10:13:12.955543"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:12.957599"], ["updated_at", "2015-10-29 10:13:12.957599"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:12.958835"], ["updated_at", "2015-10-29 10:13:12.958835"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:12.960397"], ["updated_at", "2015-10-29 10:13:12.960397"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.2ms Sent mail to user7@sleede.com (7.1ms) Date: Thu, 29 Oct 2015 11:13:12 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f138f24fd_25a13ff3e505e1dc80951@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:13:12.998419"], ["updated_at", "2015-10-29 10:13:12.998419"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.000887"], ["updated_at", "2015-10-29 10:13:13.000887"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.007260"], ["updated_at", "2015-10-29 10:13:13.007260"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.010514"], ["updated_at", "2015-10-29 10:13:13.010514"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.013000"], ["updated_at", "2015-10-29 10:13:13.013000"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user8@sleede.com (1.2ms) Date: Thu, 29 Oct 2015 11:13:13 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f1393e6f_25a13ff3e505e1dc8108a@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:13:13.020542"], ["updated_at", "2015-10-29 10:13:13.020542"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.022622"], ["updated_at", "2015-10-29 10:13:13.022622"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.024692"], ["updated_at", "2015-10-29 10:13:13.024692"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.025854"], ["updated_at", "2015-10-29 10:13:13.025854"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.027241"], ["updated_at", "2015-10-29 10:13:13.027241"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user9@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:13:13 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f139775c_25a13ff3e505e1dc8116c@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:13:13.034198"], ["updated_at", "2015-10-29 10:13:13.034198"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.036241"], ["updated_at", "2015-10-29 10:13:13.036241"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.038296"], ["updated_at", "2015-10-29 10:13:13.038296"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.040510"], ["updated_at", "2015-10-29 10:13:13.040510"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.043204"], ["updated_at", "2015-10-29 10:13:13.043204"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user10@sleede.com (1.7ms) Date: Thu, 29 Oct 2015 11:13:13 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f139ba18_25a13ff3e505e1dc812d3@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.051378"], ["updated_at", "2015-10-29 10:13:13.051378"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:13:13.055593"], ["updated_at", "2015-10-29 10:13:13.055593"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.061584"], ["updated_at", "2015-10-29 10:13:13.061584"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.063912"], ["updated_at", "2015-10-29 10:13:13.063912"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:13:13.065659"], ["updated_at", "2015-10-29 10:13:13.065659"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.066965"], ["updated_at", "2015-10-29 10:13:13.066965"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.068314"], ["updated_at", "2015-10-29 10:13:13.068314"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.069914"], ["updated_at", "2015-10-29 10:13:13.069914"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.073340"], ["updated_at", "2015-10-29 10:13:13.073340"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:13:13.074807"], ["updated_at", "2015-10-29 10:13:13.074807"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.077001"], ["updated_at", "2015-10-29 10:13:13.077001"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.078181"], ["updated_at", "2015-10-29 10:13:13.078181"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:13:13.079520"], ["updated_at", "2015-10-29 10:13:13.079520"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.080628"], ["updated_at", "2015-10-29 10:13:13.080628"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.081838"], ["updated_at", "2015-10-29 10:13:13.081838"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.084220"], ["updated_at", "2015-10-29 10:13:13.084220"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.088623"], ["updated_at", "2015-10-29 10:13:13.088623"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:13:13.091949"], ["updated_at", "2015-10-29 10:13:13.091949"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.095619"], ["updated_at", "2015-10-29 10:13:13.095619"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.097463"], ["updated_at", "2015-10-29 10:13:13.097463"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.101929"], ["updated_at", "2015-10-29 10:13:13.101929"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user15@sleede.com (1.2ms) Date: Thu, 29 Oct 2015 11:13:13 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f13919ae7_25a13ff3e505e1dc8132e@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.109870"], ["updated_at", "2015-10-29 10:13:13.109870"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:13:13.111882"], ["updated_at", "2015-10-29 10:13:13.111882"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.114254"], ["updated_at", "2015-10-29 10:13:13.114254"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.115555"], ["updated_at", "2015-10-29 10:13:13.115555"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.118842"], ["updated_at", "2015-10-29 10:13:13.118842"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 864c665e-6ead-4cf5-9c5c-061f5f1185b1) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] NotificationsMailer#send_mail_by: processed outbound mail in 5.4ms [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] Sent mail to user16@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] Date: Thu, 29 Oct 2015 11:13:13 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f13924d85_25a13ff3e505e1dc81438@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [864c665e-6ead-4cf5-9c5c-061f5f1185b1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.12ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.154117"], ["updated_at", "2015-10-29 10:13:13.154117"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:13:13.155771"], ["updated_at", "2015-10-29 10:13:13.155771"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.158029"], ["updated_at", "2015-10-29 10:13:13.158029"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.159249"], ["updated_at", "2015-10-29 10:13:13.159249"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.166809"], ["updated_at", "2015-10-29 10:13:13.166809"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:13:13.168861"], ["updated_at", "2015-10-29 10:13:13.168861"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.171797"], ["updated_at", "2015-10-29 10:13:13.171797"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.173061"], ["updated_at", "2015-10-29 10:13:13.173061"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.176742"], ["updated_at", "2015-10-29 10:13:13.176742"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:13:13.178231"], ["updated_at", "2015-10-29 10:13:13.178231"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.180298"], ["updated_at", "2015-10-29 10:13:13.180298"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.181429"], ["updated_at", "2015-10-29 10:13:13.181429"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:13:13.182889"], ["updated_at", "2015-10-29 10:13:13.182889"]] [1m[36m (0.3ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.186861"], ["updated_at", "2015-10-29 10:13:13.186861"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.191395"], ["updated_at", "2015-10-29 10:13:13.191395"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.196291"], ["updated_at", "2015-10-29 10:13:13.196291"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.201144"], ["updated_at", "2015-10-29 10:13:13.201144"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:13:13.202767"], ["updated_at", "2015-10-29 10:13:13.202767"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.205046"], ["updated_at", "2015-10-29 10:13:13.205046"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.206387"], ["updated_at", "2015-10-29 10:13:13.206387"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:13:13.207842"], ["updated_at", "2015-10-29 10:13:13.207842"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.209048"], ["updated_at", "2015-10-29 10:13:13.209048"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.210680"], ["updated_at", "2015-10-29 10:13:13.210680"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.212548"], ["updated_at", "2015-10-29 10:13:13.212548"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.215603"], ["updated_at", "2015-10-29 10:13:13.215603"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:13:13.219055"], ["updated_at", "2015-10-29 10:13:13.219055"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.224164"], ["updated_at", "2015-10-29 10:13:13.224164"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.226491"], ["updated_at", "2015-10-29 10:13:13.226491"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:13:13.228838"], ["updated_at", "2015-10-29 10:13:13.228838"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.230958"], ["updated_at", "2015-10-29 10:13:13.230958"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.232522"], ["updated_at", "2015-10-29 10:13:13.232522"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:13:13.235837"], ["updated_at", "2015-10-29 10:13:13.235837"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.256671"], ["updated_at", "2015-10-29 10:13:13.256671"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:13:13.258189"], ["updated_at", "2015-10-29 10:13:13.258189"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.260306"], ["updated_at", "2015-10-29 10:13:13.260306"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.261422"], ["updated_at", "2015-10-29 10:13:13.261422"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.263965"], ["updated_at", "2015-10-29 10:13:13.263965"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.267476"], ["updated_at", "2015-10-29 10:13:13.267476"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:13:13.269150"], ["updated_at", "2015-10-29 10:13:13.269150"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.271609"], ["updated_at", "2015-10-29 10:13:13.271609"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.272776"], ["updated_at", "2015-10-29 10:13:13.272776"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:13:13.274136"], ["updated_at", "2015-10-29 10:13:13.274136"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.275200"], ["updated_at", "2015-10-29 10:13:13.275200"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.276813"], ["updated_at", "2015-10-29 10:13:13.276813"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.280422"], ["updated_at", "2015-10-29 10:13:13.280422"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:13:13.281870"], ["updated_at", "2015-10-29 10:13:13.281870"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.283825"], ["updated_at", "2015-10-29 10:13:13.283825"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.284913"], ["updated_at", "2015-10-29 10:13:13.284913"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:13:13.286363"], ["updated_at", "2015-10-29 10:13:13.286363"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.287578"], ["updated_at", "2015-10-29 10:13:13.287578"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:13:13.288765"], ["updated_at", "2015-10-29 10:13:13.288765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.294668"], ["updated_at", "2015-10-29 10:13:13.294668"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:13:13.297098"], ["updated_at", "2015-10-29 10:13:13.297098"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:13:13.299968"], ["updated_at", "2015-10-29 10:13:13.299968"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:13:13.303639"], ["updated_at", "2015-10-29 10:13:13.303639"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:13:13.307303"], ["updated_at", "2015-10-29 10:13:13.307303"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:13:13.310173"], ["updated_at", "2015-10-29 10:13:13.310173"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:13:13.313114"], ["updated_at", "2015-10-29 10:13:13.313114"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.7ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:19:20.684469"], ["updated_at", "2015-10-29 10:19:20.684469"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:20.698156"], ["updated_at", "2015-10-29 10:19:20.698156"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.713516"], ["updated_at", "2015-10-29 10:19:20.713516"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.719939"], ["updated_at", "2015-10-29 10:19:20.719939"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.722481"], ["updated_at", "2015-10-29 10:19:20.722481"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:19:20.727493"], ["updated_at", "2015-10-29 10:19:20.727493"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.729270"], ["updated_at", "2015-10-29 10:19:20.729270"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.731178"], ["updated_at", "2015-10-29 10:19:20.731178"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.732257"], ["updated_at", "2015-10-29 10:19:20.732257"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.733588"], ["updated_at", "2015-10-29 10:19:20.733588"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.1ms Sent mail to user2@sleede.com (7.3ms) Date: Thu, 29 Oct 2015 11:19:20 +0100 From: contact@sleede.com To: user2@sleede.com Message-ID: <5631f2a8bafb6_25f63fdefd0601dc685cd@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser2
message body
[1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:19:20.771609"], ["updated_at", "2015-10-29 10:19:20.771609"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.773467"], ["updated_at", "2015-10-29 10:19:20.773467"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.775441"], ["updated_at", "2015-10-29 10:19:20.775441"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.776595"], ["updated_at", "2015-10-29 10:19:20.776595"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.777978"], ["updated_at", "2015-10-29 10:19:20.777978"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.4ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.1ms Sent mail to user3@sleede.com (2.5ms) Date: Thu, 29 Oct 2015 11:19:20 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5631f2a8bf8f1_25f63fdefd0601dc686af@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:19:20.793055"], ["updated_at", "2015-10-29 10:19:20.793055"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.795354"], ["updated_at", "2015-10-29 10:19:20.795354"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.797711"], ["updated_at", "2015-10-29 10:19:20.797711"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.799012"], ["updated_at", "2015-10-29 10:19:20.799012"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.800814"], ["updated_at", "2015-10-29 10:19:20.800814"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user4@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 11:19:20 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631f2a8c440d_25f63fdefd0601dc687aa@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:19:20.807892"], ["updated_at", "2015-10-29 10:19:20.807892"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.809797"], ["updated_at", "2015-10-29 10:19:20.809797"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.811787"], ["updated_at", "2015-10-29 10:19:20.811787"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.812895"], ["updated_at", "2015-10-29 10:19:20.812895"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.814269"], ["updated_at", "2015-10-29 10:19:20.814269"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user5@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:19:20 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631f2a8c78fb_25f63fdefd0601dc688f4@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.821850"], ["updated_at", "2015-10-29 10:19:20.821850"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:19:20.823771"], ["updated_at", "2015-10-29 10:19:20.823771"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.826939"], ["updated_at", "2015-10-29 10:19:20.826939"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.828485"], ["updated_at", "2015-10-29 10:19:20.828485"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:19:20.831973"], ["updated_at", "2015-10-29 10:19:20.831973"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:20.835191"], ["updated_at", "2015-10-29 10:19:20.835191"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.838496"], ["updated_at", "2015-10-29 10:19:20.838496"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.842133"], ["updated_at", "2015-10-29 10:19:20.842133"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.845516"], ["updated_at", "2015-10-29 10:19:20.845516"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:19:20.846982"], ["updated_at", "2015-10-29 10:19:20.846982"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.849214"], ["updated_at", "2015-10-29 10:19:20.849214"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.850506"], ["updated_at", "2015-10-29 10:19:20.850506"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:19:20.851891"], ["updated_at", "2015-10-29 10:19:20.851891"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:20.853114"], ["updated_at", "2015-10-29 10:19:20.853114"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.854763"], ["updated_at", "2015-10-29 10:19:20.854763"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.856609"], ["updated_at", "2015-10-29 10:19:20.856609"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.859928"], ["updated_at", "2015-10-29 10:19:20.859928"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:19:20.861350"], ["updated_at", "2015-10-29 10:19:20.861350"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.863446"], ["updated_at", "2015-10-29 10:19:20.863446"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.864581"], ["updated_at", "2015-10-29 10:19:20.864581"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:20.870500"], ["updated_at", "2015-10-29 10:19:20.870500"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user10@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 11:19:20 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f2a8d5804_25f63fdefd0601dc689b6@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.878303"], ["updated_at", "2015-10-29 10:19:20.878303"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:19:20.881676"], ["updated_at", "2015-10-29 10:19:20.881676"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.887467"], ["updated_at", "2015-10-29 10:19:20.887467"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.890671"], ["updated_at", "2015-10-29 10:19:20.890671"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:20.892760"], ["updated_at", "2015-10-29 10:19:20.892760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d04c5bc9-6fc9-4527-879e-3c6e2418437f) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] NotificationsMailer#send_mail_by: processed outbound mail in 7.4ms [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] Sent mail to user11@sleede.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] Date: Thu, 29 Oct 2015 11:19:20 +0100 From: contact@sleede.com To: user11@sleede.com Message-ID: <5631f2a8e0b4e_25f63fdefd0601dc6902a@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser11
message body
[ActiveJob] [ActionMailer::DeliveryJob] [d04c5bc9-6fc9-4527-879e-3c6e2418437f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.38ms [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.924035"], ["updated_at", "2015-10-29 10:19:20.924035"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:19:20.925924"], ["updated_at", "2015-10-29 10:19:20.925924"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.928114"], ["updated_at", "2015-10-29 10:19:20.928114"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.929918"], ["updated_at", "2015-10-29 10:19:20.929918"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:20.942131"], ["updated_at", "2015-10-29 10:19:20.942131"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:19:20.943624"], ["updated_at", "2015-10-29 10:19:20.943624"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.945704"], ["updated_at", "2015-10-29 10:19:20.945704"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.946858"], ["updated_at", "2015-10-29 10:19:20.946858"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.950746"], ["updated_at", "2015-10-29 10:19:20.950746"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:19:20.952204"], ["updated_at", "2015-10-29 10:19:20.952204"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.954267"], ["updated_at", "2015-10-29 10:19:20.954267"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.955407"], ["updated_at", "2015-10-29 10:19:20.955407"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:19:20.956744"], ["updated_at", "2015-10-29 10:19:20.956744"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:20.957827"], ["updated_at", "2015-10-29 10:19:20.957827"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.959061"], ["updated_at", "2015-10-29 10:19:20.959061"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.960636"], ["updated_at", "2015-10-29 10:19:20.960636"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:20.964550"], ["updated_at", "2015-10-29 10:19:20.964550"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:19:20.966109"], ["updated_at", "2015-10-29 10:19:20.966109"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.970239"], ["updated_at", "2015-10-29 10:19:20.970239"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.972185"], ["updated_at", "2015-10-29 10:19:20.972185"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:19:20.974801"], ["updated_at", "2015-10-29 10:19:20.974801"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:20.976171"], ["updated_at", "2015-10-29 10:19:20.976171"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:20.977453"], ["updated_at", "2015-10-29 10:19:20.977453"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.979118"], ["updated_at", "2015-10-29 10:19:20.979118"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.985562"], ["updated_at", "2015-10-29 10:19:20.985562"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:19:20.988871"], ["updated_at", "2015-10-29 10:19:20.988871"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:20.992628"], ["updated_at", "2015-10-29 10:19:20.992628"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:20.994070"], ["updated_at", "2015-10-29 10:19:20.994070"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:19:20.995558"], ["updated_at", "2015-10-29 10:19:20.995558"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:20.996710"], ["updated_at", "2015-10-29 10:19:20.996710"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:20.998032"], ["updated_at", "2015-10-29 10:19:20.998032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:20.999719"], ["updated_at", "2015-10-29 10:19:20.999719"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:21.016046"], ["updated_at", "2015-10-29 10:19:21.016046"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:19:21.017620"], ["updated_at", "2015-10-29 10:19:21.017620"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:21.021649"], ["updated_at", "2015-10-29 10:19:21.021649"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:21.023364"], ["updated_at", "2015-10-29 10:19:21.023364"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:21.027320"], ["updated_at", "2015-10-29 10:19:21.027320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:21.032550"], ["updated_at", "2015-10-29 10:19:21.032550"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:19:21.036150"], ["updated_at", "2015-10-29 10:19:21.036150"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:21.041260"], ["updated_at", "2015-10-29 10:19:21.041260"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:21.042664"], ["updated_at", "2015-10-29 10:19:21.042664"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:19:21.044131"], ["updated_at", "2015-10-29 10:19:21.044131"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:21.045220"], ["updated_at", "2015-10-29 10:19:21.045220"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:21.046411"], ["updated_at", "2015-10-29 10:19:21.046411"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:21.050122"], ["updated_at", "2015-10-29 10:19:21.050122"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:19:21.051592"], ["updated_at", "2015-10-29 10:19:21.051592"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:21.053651"], ["updated_at", "2015-10-29 10:19:21.053651"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:21.054813"], ["updated_at", "2015-10-29 10:19:21.054813"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:19:21.056205"], ["updated_at", "2015-10-29 10:19:21.056205"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:21.057286"], ["updated_at", "2015-10-29 10:19:21.057286"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:21.058806"], ["updated_at", "2015-10-29 10:19:21.058806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:21.062565"], ["updated_at", "2015-10-29 10:19:21.062565"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:19:21.064057"], ["updated_at", "2015-10-29 10:19:21.064057"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:21.066190"], ["updated_at", "2015-10-29 10:19:21.066190"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:21.067440"], ["updated_at", "2015-10-29 10:19:21.067440"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:19:21.070446"], ["updated_at", "2015-10-29 10:19:21.070446"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:21.072573"], ["updated_at", "2015-10-29 10:19:21.072573"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:21.074484"], ["updated_at", "2015-10-29 10:19:21.074484"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.7ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[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 ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:19:36.071807"], ["updated_at", "2015-10-29 10:19:36.071807"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.088451"], ["updated_at", "2015-10-29 10:19:36.088451"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.104038"], ["updated_at", "2015-10-29 10:19:36.104038"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.111179"], ["updated_at", "2015-10-29 10:19:36.111179"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.113937"], ["updated_at", "2015-10-29 10:19:36.113937"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:19:36.119384"], ["updated_at", "2015-10-29 10:19:36.119384"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.121480"], ["updated_at", "2015-10-29 10:19:36.121480"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.123767"], ["updated_at", "2015-10-29 10:19:36.123767"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.124987"], ["updated_at", "2015-10-29 10:19:36.124987"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.126430"], ["updated_at", "2015-10-29 10:19:36.126430"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (2.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 26.2ms Sent mail to user2@sleede.com (7.4ms) Date: Thu, 29 Oct 2015 11:19:36 +0100 From: contact@sleede.com To: user2@sleede.com Message-ID: <5631f2b826ef9_26003ff87185e1d021683@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser2
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:19:36.166173"], ["updated_at", "2015-10-29 10:19:36.166173"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.171615"], ["updated_at", "2015-10-29 10:19:36.171615"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.182503"], ["updated_at", "2015-10-29 10:19:36.182503"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.186368"], ["updated_at", "2015-10-29 10:19:36.186368"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.190190"], ["updated_at", "2015-10-29 10:19:36.190190"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user3@sleede.com (1.2ms) Date: Thu, 29 Oct 2015 11:19:36 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5631f2b82f306_26003ff87185e1d021726@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:19:36.198178"], ["updated_at", "2015-10-29 10:19:36.198178"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.200374"], ["updated_at", "2015-10-29 10:19:36.200374"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.202651"], ["updated_at", "2015-10-29 10:19:36.202651"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.203875"], ["updated_at", "2015-10-29 10:19:36.203875"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.205337"], ["updated_at", "2015-10-29 10:19:36.205337"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (2.2ms) Date: Thu, 29 Oct 2015 11:19:36 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631f2b8330c3_26003ff87185e1d0218a2@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:19:36.214151"], ["updated_at", "2015-10-29 10:19:36.214151"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.217159"], ["updated_at", "2015-10-29 10:19:36.217159"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.219918"], ["updated_at", "2015-10-29 10:19:36.219918"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.221164"], ["updated_at", "2015-10-29 10:19:36.221164"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.222922"], ["updated_at", "2015-10-29 10:19:36.222922"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user5@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:19:36 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631f2b837280_26003ff87185e1d02198c@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.232756"], ["updated_at", "2015-10-29 10:19:36.232756"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:19:36.238110"], ["updated_at", "2015-10-29 10:19:36.238110"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.243336"], ["updated_at", "2015-10-29 10:19:36.243336"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.245375"], ["updated_at", "2015-10-29 10:19:36.245375"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:19:36.248023"], ["updated_at", "2015-10-29 10:19:36.248023"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.249884"], ["updated_at", "2015-10-29 10:19:36.249884"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.252570"], ["updated_at", "2015-10-29 10:19:36.252570"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.258544"], ["updated_at", "2015-10-29 10:19:36.258544"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.262693"], ["updated_at", "2015-10-29 10:19:36.262693"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:19:36.267054"], ["updated_at", "2015-10-29 10:19:36.267054"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.271544"], ["updated_at", "2015-10-29 10:19:36.271544"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.273314"], ["updated_at", "2015-10-29 10:19:36.273314"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:19:36.275309"], ["updated_at", "2015-10-29 10:19:36.275309"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.276808"], ["updated_at", "2015-10-29 10:19:36.276808"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.278268"], ["updated_at", "2015-10-29 10:19:36.278268"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.283368"], ["updated_at", "2015-10-29 10:19:36.283368"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.289921"], ["updated_at", "2015-10-29 10:19:36.289921"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:19:36.291596"], ["updated_at", "2015-10-29 10:19:36.291596"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.293636"], ["updated_at", "2015-10-29 10:19:36.293636"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.294760"], ["updated_at", "2015-10-29 10:19:36.294760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.299079"], ["updated_at", "2015-10-29 10:19:36.299079"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:19:36 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f2b849dbf_26003ff87185e1d0220eb@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.306619"], ["updated_at", "2015-10-29 10:19:36.306619"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:19:36.308320"], ["updated_at", "2015-10-29 10:19:36.308320"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.310715"], ["updated_at", "2015-10-29 10:19:36.310715"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.311933"], ["updated_at", "2015-10-29 10:19:36.311933"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.313689"], ["updated_at", "2015-10-29 10:19:36.313689"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6a83aec2-81f7-4da2-99ea-a825dc25edb0) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] NotificationsMailer#send_mail_by: processed outbound mail in 5.9ms [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] Sent mail to user11@sleede.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] Date: Thu, 29 Oct 2015 11:19:36 +0100 From: contact@sleede.com To: user11@sleede.com Message-ID: <5631f2b8530cd_26003ff87185e1d02210@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser11
message body
[ActiveJob] [ActionMailer::DeliveryJob] [6a83aec2-81f7-4da2-99ea-a825dc25edb0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.85ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.343423"], ["updated_at", "2015-10-29 10:19:36.343423"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:19:36.345159"], ["updated_at", "2015-10-29 10:19:36.345159"]] [1m[35m (0.3ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.352178"], ["updated_at", "2015-10-29 10:19:36.352178"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.356506"], ["updated_at", "2015-10-29 10:19:36.356506"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.363408"], ["updated_at", "2015-10-29 10:19:36.363408"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:19:36.365568"], ["updated_at", "2015-10-29 10:19:36.365568"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.369093"], ["updated_at", "2015-10-29 10:19:36.369093"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.371057"], ["updated_at", "2015-10-29 10:19:36.371057"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.377651"], ["updated_at", "2015-10-29 10:19:36.377651"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:19:36.381282"], ["updated_at", "2015-10-29 10:19:36.381282"]] [1m[35m (0.4ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.388018"], ["updated_at", "2015-10-29 10:19:36.388018"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.389931"], ["updated_at", "2015-10-29 10:19:36.389931"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:19:36.391914"], ["updated_at", "2015-10-29 10:19:36.391914"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.393638"], ["updated_at", "2015-10-29 10:19:36.393638"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.395169"], ["updated_at", "2015-10-29 10:19:36.395169"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.396989"], ["updated_at", "2015-10-29 10:19:36.396989"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.404201"], ["updated_at", "2015-10-29 10:19:36.404201"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:19:36.408210"], ["updated_at", "2015-10-29 10:19:36.408210"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.412382"], ["updated_at", "2015-10-29 10:19:36.412382"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.413597"], ["updated_at", "2015-10-29 10:19:36.413597"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:19:36.414933"], ["updated_at", "2015-10-29 10:19:36.414933"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.416001"], ["updated_at", "2015-10-29 10:19:36.416001"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.417188"], ["updated_at", "2015-10-29 10:19:36.417188"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.418729"], ["updated_at", "2015-10-29 10:19:36.418729"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.421813"], ["updated_at", "2015-10-29 10:19:36.421813"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:19:36.423310"], ["updated_at", "2015-10-29 10:19:36.423310"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.425379"], ["updated_at", "2015-10-29 10:19:36.425379"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.426551"], ["updated_at", "2015-10-29 10:19:36.426551"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:19:36.428608"], ["updated_at", "2015-10-29 10:19:36.428608"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.430060"], ["updated_at", "2015-10-29 10:19:36.430060"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.431915"], ["updated_at", "2015-10-29 10:19:36.431915"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:19:36.434160"], ["updated_at", "2015-10-29 10:19:36.434160"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (2.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.456587"], ["updated_at", "2015-10-29 10:19:36.456587"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:19:36.460237"], ["updated_at", "2015-10-29 10:19:36.460237"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.463796"], ["updated_at", "2015-10-29 10:19:36.463796"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.464991"], ["updated_at", "2015-10-29 10:19:36.464991"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.467701"], ["updated_at", "2015-10-29 10:19:36.467701"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.471082"], ["updated_at", "2015-10-29 10:19:36.471082"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:19:36.472666"], ["updated_at", "2015-10-29 10:19:36.472666"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.475494"], ["updated_at", "2015-10-29 10:19:36.475494"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.477176"], ["updated_at", "2015-10-29 10:19:36.477176"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:19:36.478885"], ["updated_at", "2015-10-29 10:19:36.478885"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.480076"], ["updated_at", "2015-10-29 10:19:36.480076"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.481382"], ["updated_at", "2015-10-29 10:19:36.481382"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.485094"], ["updated_at", "2015-10-29 10:19:36.485094"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:19:36.486542"], ["updated_at", "2015-10-29 10:19:36.486542"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.488685"], ["updated_at", "2015-10-29 10:19:36.488685"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.491585"], ["updated_at", "2015-10-29 10:19:36.491585"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:19:36.494490"], ["updated_at", "2015-10-29 10:19:36.494490"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.496317"], ["updated_at", "2015-10-29 10:19:36.496317"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:19:36.498003"], ["updated_at", "2015-10-29 10:19:36.498003"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.505848"], ["updated_at", "2015-10-29 10:19:36.505848"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:19:36.511074"], ["updated_at", "2015-10-29 10:19:36.511074"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:19:36.514014"], ["updated_at", "2015-10-29 10:19:36.514014"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:19:36.515186"], ["updated_at", "2015-10-29 10:19:36.515186"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:19:36.516520"], ["updated_at", "2015-10-29 10:19:36.516520"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:19:36.517615"], ["updated_at", "2015-10-29 10:19:36.517615"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:19:36.518803"], ["updated_at", "2015-10-29 10:19:36.518803"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.0ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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 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.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:20:34.692531"], ["updated_at", "2015-10-29 10:20:34.692531"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:34.707159"], ["updated_at", "2015-10-29 10:20:34.707159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.722070"], ["updated_at", "2015-10-29 10:20:34.722070"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.730384"], ["updated_at", "2015-10-29 10:20:34.730384"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:34.733793"], ["updated_at", "2015-10-29 10:20:34.733793"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:20:34.743218"], ["updated_at", "2015-10-29 10:20:34.743218"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.745741"], ["updated_at", "2015-10-29 10:20:34.745741"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.748347"], ["updated_at", "2015-10-29 10:20:34.748347"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.750240"], ["updated_at", "2015-10-29 10:20:34.750240"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:34.754283"], ["updated_at", "2015-10-29 10:20:34.754283"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[35mSQL (0.2ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 28.6ms Sent mail to user2@sleede.com (6.9ms) Date: Thu, 29 Oct 2015 11:20:34 +0100 From: contact@sleede.com To: user2@sleede.com Message-ID: <5631f2f2c0af1_26103ff68d4601e05268e@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser2
message body
[1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:20:34.795334"], ["updated_at", "2015-10-29 10:20:34.795334"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.798250"], ["updated_at", "2015-10-29 10:20:34.798250"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.3ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.806505"], ["updated_at", "2015-10-29 10:20:34.806505"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.810617"], ["updated_at", "2015-10-29 10:20:34.810617"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:34.812765"], ["updated_at", "2015-10-29 10:20:34.812765"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user3@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 11:20:34 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5631f2f2c7504_26103ff68d4601e052760@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:20:34.821256"], ["updated_at", "2015-10-29 10:20:34.821256"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.823448"], ["updated_at", "2015-10-29 10:20:34.823448"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.826675"], ["updated_at", "2015-10-29 10:20:34.826675"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.831471"], ["updated_at", "2015-10-29 10:20:34.831471"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:34.836060"], ["updated_at", "2015-10-29 10:20:34.836060"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (1.7ms) Date: Thu, 29 Oct 2015 11:20:34 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5631f2f2cd327_26103ff68d4601e0528fe@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:20:34.844550"], ["updated_at", "2015-10-29 10:20:34.844550"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.847381"], ["updated_at", "2015-10-29 10:20:34.847381"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.850149"], ["updated_at", "2015-10-29 10:20:34.850149"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.855806"], ["updated_at", "2015-10-29 10:20:34.855806"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:34.859220"], ["updated_at", "2015-10-29 10:20:34.859220"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.2ms Sent mail to user5@sleede.com (1.6ms) Date: Thu, 29 Oct 2015 11:20:34 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5631f2f2d3106_26103ff68d4601e0529a1@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.867981"], ["updated_at", "2015-10-29 10:20:34.867981"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:20:34.869734"], ["updated_at", "2015-10-29 10:20:34.869734"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.873096"], ["updated_at", "2015-10-29 10:20:34.873096"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.874495"], ["updated_at", "2015-10-29 10:20:34.874495"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:20:34.880858"], ["updated_at", "2015-10-29 10:20:34.880858"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:34.885616"], ["updated_at", "2015-10-29 10:20:34.885616"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.888816"], ["updated_at", "2015-10-29 10:20:34.888816"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.6ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:34.891211"], ["updated_at", "2015-10-29 10:20:34.891211"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.898181"], ["updated_at", "2015-10-29 10:20:34.898181"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:20:34.899910"], ["updated_at", "2015-10-29 10:20:34.899910"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.902159"], ["updated_at", "2015-10-29 10:20:34.902159"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.903347"], ["updated_at", "2015-10-29 10:20:34.903347"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:20:34.904770"], ["updated_at", "2015-10-29 10:20:34.904770"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:34.906361"], ["updated_at", "2015-10-29 10:20:34.906361"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.907986"], ["updated_at", "2015-10-29 10:20:34.907986"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:34.909758"], ["updated_at", "2015-10-29 10:20:34.909758"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.912884"], ["updated_at", "2015-10-29 10:20:34.912884"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:20:34.914785"], ["updated_at", "2015-10-29 10:20:34.914785"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.918304"], ["updated_at", "2015-10-29 10:20:34.918304"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.919988"], ["updated_at", "2015-10-29 10:20:34.919988"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:34.924223"], ["updated_at", "2015-10-29 10:20:34.924223"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.4ms Sent mail to user10@sleede.com (2.1ms) Date: Thu, 29 Oct 2015 11:20:34 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f2f2e36fe_26103ff68d4601e05302c@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.937595"], ["updated_at", "2015-10-29 10:20:34.937595"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:20:34.939176"], ["updated_at", "2015-10-29 10:20:34.939176"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.942096"], ["updated_at", "2015-10-29 10:20:34.942096"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.943308"], ["updated_at", "2015-10-29 10:20:34.943308"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:34.945146"], ["updated_at", "2015-10-29 10:20:34.945146"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] NotificationsMailer#send_mail_by: processed outbound mail in 6.0ms [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] Sent mail to user11@sleede.com (2.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] Date: Thu, 29 Oct 2015 11:20:34 +0100 From: contact@sleede.com To: user11@sleede.com Message-ID: <5631f2f2ed246_26103ff68d4601e053168@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser11
message body
[ActiveJob] [ActionMailer::DeliveryJob] [9717ca33-ca1d-4204-adbc-e5bfd0fe0e9c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.08ms [1m[36m (3.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:34.978041"], ["updated_at", "2015-10-29 10:20:34.978041"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:20:34.980375"], ["updated_at", "2015-10-29 10:20:34.980375"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:34.983765"], ["updated_at", "2015-10-29 10:20:34.983765"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:34.987666"], ["updated_at", "2015-10-29 10:20:34.987666"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:34.997901"], ["updated_at", "2015-10-29 10:20:34.997901"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:20:34.999457"], ["updated_at", "2015-10-29 10:20:34.999457"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.002113"], ["updated_at", "2015-10-29 10:20:35.002113"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.003690"], ["updated_at", "2015-10-29 10:20:35.003690"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.008162"], ["updated_at", "2015-10-29 10:20:35.008162"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:20:35.009996"], ["updated_at", "2015-10-29 10:20:35.009996"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.012327"], ["updated_at", "2015-10-29 10:20:35.012327"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.013563"], ["updated_at", "2015-10-29 10:20:35.013563"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:20:35.015564"], ["updated_at", "2015-10-29 10:20:35.015564"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:35.017224"], ["updated_at", "2015-10-29 10:20:35.017224"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.019141"], ["updated_at", "2015-10-29 10:20:35.019141"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:35.021110"], ["updated_at", "2015-10-29 10:20:35.021110"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:35.025677"], ["updated_at", "2015-10-29 10:20:35.025677"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:20:35.027745"], ["updated_at", "2015-10-29 10:20:35.027745"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.031865"], ["updated_at", "2015-10-29 10:20:35.031865"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.033877"], ["updated_at", "2015-10-29 10:20:35.033877"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:20:35.035843"], ["updated_at", "2015-10-29 10:20:35.035843"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:35.037367"], ["updated_at", "2015-10-29 10:20:35.037367"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:35.038720"], ["updated_at", "2015-10-29 10:20:35.038720"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:35.040664"], ["updated_at", "2015-10-29 10:20:35.040664"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.048111"], ["updated_at", "2015-10-29 10:20:35.048111"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:20:35.051618"], ["updated_at", "2015-10-29 10:20:35.051618"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.055332"], ["updated_at", "2015-10-29 10:20:35.055332"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.056541"], ["updated_at", "2015-10-29 10:20:35.056541"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:20:35.058756"], ["updated_at", "2015-10-29 10:20:35.058756"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:35.060035"], ["updated_at", "2015-10-29 10:20:35.060035"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.061299"], ["updated_at", "2015-10-29 10:20:35.061299"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:20:35.062882"], ["updated_at", "2015-10-29 10:20:35.062882"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.078887"], ["updated_at", "2015-10-29 10:20:35.078887"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:20:35.080407"], ["updated_at", "2015-10-29 10:20:35.080407"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.083502"], ["updated_at", "2015-10-29 10:20:35.083502"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.085054"], ["updated_at", "2015-10-29 10:20:35.085054"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:35.088297"], ["updated_at", "2015-10-29 10:20:35.088297"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:35.093202"], ["updated_at", "2015-10-29 10:20:35.093202"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:20:35.097105"], ["updated_at", "2015-10-29 10:20:35.097105"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.103362"], ["updated_at", "2015-10-29 10:20:35.103362"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.104930"], ["updated_at", "2015-10-29 10:20:35.104930"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:20:35.106342"], ["updated_at", "2015-10-29 10:20:35.106342"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:35.107616"], ["updated_at", "2015-10-29 10:20:35.107616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:35.109003"], ["updated_at", "2015-10-29 10:20:35.109003"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.112549"], ["updated_at", "2015-10-29 10:20:35.112549"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:20:35.114084"], ["updated_at", "2015-10-29 10:20:35.114084"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.116849"], ["updated_at", "2015-10-29 10:20:35.116849"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.118323"], ["updated_at", "2015-10-29 10:20:35.118323"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:20:35.120017"], ["updated_at", "2015-10-29 10:20:35.120017"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:35.121482"], ["updated_at", "2015-10-29 10:20:35.121482"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:20:35.123323"], ["updated_at", "2015-10-29 10:20:35.123323"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:35.128036"], ["updated_at", "2015-10-29 10:20:35.128036"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:20:35.129656"], ["updated_at", "2015-10-29 10:20:35.129656"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:20:35.133528"], ["updated_at", "2015-10-29 10:20:35.133528"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:20:35.139910"], ["updated_at", "2015-10-29 10:20:35.139910"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:20:35.145602"], ["updated_at", "2015-10-29 10:20:35.145602"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:20:35.148658"], ["updated_at", "2015-10-29 10:20:35.148658"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:20:35.151182"], ["updated_at", "2015-10-29 10:20:35.151182"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.8ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:21:12.312069"], ["updated_at", "2015-10-29 10:21:12.312069"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.328252"], ["updated_at", "2015-10-29 10:21:12.328252"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.349757"], ["updated_at", "2015-10-29 10:21:12.349757"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.357124"], ["updated_at", "2015-10-29 10:21:12.357124"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.359762"], ["updated_at", "2015-10-29 10:21:12.359762"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:21:12.373199"], ["updated_at", "2015-10-29 10:21:12.373199"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.375347"], ["updated_at", "2015-10-29 10:21:12.375347"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.377624"], ["updated_at", "2015-10-29 10:21:12.377624"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.378881"], ["updated_at", "2015-10-29 10:21:12.378881"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.380357"], ["updated_at", "2015-10-29 10:21:12.380357"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:21:12.384703"], ["updated_at", "2015-10-29 10:21:12.384703"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.386768"], ["updated_at", "2015-10-29 10:21:12.386768"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.389181"], ["updated_at", "2015-10-29 10:21:12.389181"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.390448"], ["updated_at", "2015-10-29 10:21:12.390448"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.391926"], ["updated_at", "2015-10-29 10:21:12.391926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:21:12.396371"], ["updated_at", "2015-10-29 10:21:12.396371"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.398478"], ["updated_at", "2015-10-29 10:21:12.398478"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.400756"], ["updated_at", "2015-10-29 10:21:12.400756"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.402054"], ["updated_at", "2015-10-29 10:21:12.402054"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.403561"], ["updated_at", "2015-10-29 10:21:12.403561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:21:12.409419"], ["updated_at", "2015-10-29 10:21:12.409419"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.411545"], ["updated_at", "2015-10-29 10:21:12.411545"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.414120"], ["updated_at", "2015-10-29 10:21:12.414120"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.415837"], ["updated_at", "2015-10-29 10:21:12.415837"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.417980"], ["updated_at", "2015-10-29 10:21:12.417980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:21:12.568252"], ["updated_at", "2015-10-29 10:21:12.568252"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.570381"], ["updated_at", "2015-10-29 10:21:12.570381"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.572604"], ["updated_at", "2015-10-29 10:21:12.572604"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.573860"], ["updated_at", "2015-10-29 10:21:12.573860"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.575406"], ["updated_at", "2015-10-29 10:21:12.575406"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:21:12.581047"], ["updated_at", "2015-10-29 10:21:12.581047"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.583169"], ["updated_at", "2015-10-29 10:21:12.583169"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.585357"], ["updated_at", "2015-10-29 10:21:12.585357"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.586602"], ["updated_at", "2015-10-29 10:21:12.586602"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.588086"], ["updated_at", "2015-10-29 10:21:12.588086"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.3ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.8ms Sent mail to user7@sleede.com (7.5ms) Date: Thu, 29 Oct 2015 11:21:12 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f31897816_26183fdd08c601e097659@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:21:12.626676"], ["updated_at", "2015-10-29 10:21:12.626676"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.631685"], ["updated_at", "2015-10-29 10:21:12.631685"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.636917"], ["updated_at", "2015-10-29 10:21:12.636917"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.639631"], ["updated_at", "2015-10-29 10:21:12.639631"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.641127"], ["updated_at", "2015-10-29 10:21:12.641127"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user8@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:21:12 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f3189d3d2_26183fdd08c601e0977c2@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:21:12.648401"], ["updated_at", "2015-10-29 10:21:12.648401"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.650236"], ["updated_at", "2015-10-29 10:21:12.650236"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.652123"], ["updated_at", "2015-10-29 10:21:12.652123"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.653209"], ["updated_at", "2015-10-29 10:21:12.653209"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.654548"], ["updated_at", "2015-10-29 10:21:12.654548"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.6ms) Date: Thu, 29 Oct 2015 11:21:12 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f318a0937_26183fdd08c601e097861@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:21:12.661385"], ["updated_at", "2015-10-29 10:21:12.661385"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.663408"], ["updated_at", "2015-10-29 10:21:12.663408"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.665512"], ["updated_at", "2015-10-29 10:21:12.665512"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.667879"], ["updated_at", "2015-10-29 10:21:12.667879"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.670668"], ["updated_at", "2015-10-29 10:21:12.670668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.6ms) Date: Thu, 29 Oct 2015 11:21:12 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f318a4966_26183fdd08c601e0979d2@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.677654"], ["updated_at", "2015-10-29 10:21:12.677654"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:21:12.682464"], ["updated_at", "2015-10-29 10:21:12.682464"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.688320"], ["updated_at", "2015-10-29 10:21:12.688320"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.690305"], ["updated_at", "2015-10-29 10:21:12.690305"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:21:12.691744"], ["updated_at", "2015-10-29 10:21:12.691744"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.692847"], ["updated_at", "2015-10-29 10:21:12.692847"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.694226"], ["updated_at", "2015-10-29 10:21:12.694226"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.695817"], ["updated_at", "2015-10-29 10:21:12.695817"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.699382"], ["updated_at", "2015-10-29 10:21:12.699382"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:21:12.700975"], ["updated_at", "2015-10-29 10:21:12.700975"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.703165"], ["updated_at", "2015-10-29 10:21:12.703165"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.704363"], ["updated_at", "2015-10-29 10:21:12.704363"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:21:12.705792"], ["updated_at", "2015-10-29 10:21:12.705792"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.706904"], ["updated_at", "2015-10-29 10:21:12.706904"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.708181"], ["updated_at", "2015-10-29 10:21:12.708181"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.710218"], ["updated_at", "2015-10-29 10:21:12.710218"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.713581"], ["updated_at", "2015-10-29 10:21:12.713581"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:21:12.716118"], ["updated_at", "2015-10-29 10:21:12.716118"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.720183"], ["updated_at", "2015-10-29 10:21:12.720183"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.722121"], ["updated_at", "2015-10-29 10:21:12.722121"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.727205"], ["updated_at", "2015-10-29 10:21:12.727205"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.8ms Sent mail to user15@sleede.com (2.5ms) Date: Thu, 29 Oct 2015 11:21:12 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f318b3a58_26183fdd08c601e098074@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.740660"], ["updated_at", "2015-10-29 10:21:12.740660"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:21:12.742139"], ["updated_at", "2015-10-29 10:21:12.742139"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.744291"], ["updated_at", "2015-10-29 10:21:12.744291"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.745447"], ["updated_at", "2015-10-29 10:21:12.745447"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.747154"], ["updated_at", "2015-10-29 10:21:12.747154"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d7c90d9d-298d-4cb3-9faf-b9414ccfb1df) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] NotificationsMailer#send_mail_by: processed outbound mail in 5.4ms [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] Sent mail to user16@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] Date: Thu, 29 Oct 2015 11:21:12 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f318bc785_26183fdd08c601e098180@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [d7c90d9d-298d-4cb3-9faf-b9414ccfb1df] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.13ms [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.776110"], ["updated_at", "2015-10-29 10:21:12.776110"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:21:12.778011"], ["updated_at", "2015-10-29 10:21:12.778011"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.781191"], ["updated_at", "2015-10-29 10:21:12.781191"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.782859"], ["updated_at", "2015-10-29 10:21:12.782859"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.788833"], ["updated_at", "2015-10-29 10:21:12.788833"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:21:12.790369"], ["updated_at", "2015-10-29 10:21:12.790369"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.792321"], ["updated_at", "2015-10-29 10:21:12.792321"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.793566"], ["updated_at", "2015-10-29 10:21:12.793566"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.802713"], ["updated_at", "2015-10-29 10:21:12.802713"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:21:12.805971"], ["updated_at", "2015-10-29 10:21:12.805971"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.808173"], ["updated_at", "2015-10-29 10:21:12.808173"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.809288"], ["updated_at", "2015-10-29 10:21:12.809288"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:21:12.811035"], ["updated_at", "2015-10-29 10:21:12.811035"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.812259"], ["updated_at", "2015-10-29 10:21:12.812259"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.813459"], ["updated_at", "2015-10-29 10:21:12.813459"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.815026"], ["updated_at", "2015-10-29 10:21:12.815026"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.819631"], ["updated_at", "2015-10-29 10:21:12.819631"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:21:12.821279"], ["updated_at", "2015-10-29 10:21:12.821279"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.823522"], ["updated_at", "2015-10-29 10:21:12.823522"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.824782"], ["updated_at", "2015-10-29 10:21:12.824782"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:21:12.826258"], ["updated_at", "2015-10-29 10:21:12.826258"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.827368"], ["updated_at", "2015-10-29 10:21:12.827368"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.828943"], ["updated_at", "2015-10-29 10:21:12.828943"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.830756"], ["updated_at", "2015-10-29 10:21:12.830756"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.835387"], ["updated_at", "2015-10-29 10:21:12.835387"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:21:12.837077"], ["updated_at", "2015-10-29 10:21:12.837077"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.839779"], ["updated_at", "2015-10-29 10:21:12.839779"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.841421"], ["updated_at", "2015-10-29 10:21:12.841421"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:21:12.843090"], ["updated_at", "2015-10-29 10:21:12.843090"]] [1m[36m (0.3ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.846656"], ["updated_at", "2015-10-29 10:21:12.846656"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.849983"], ["updated_at", "2015-10-29 10:21:12.849983"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:12.853418"], ["updated_at", "2015-10-29 10:21:12.853418"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.869504"], ["updated_at", "2015-10-29 10:21:12.869504"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:21:12.871143"], ["updated_at", "2015-10-29 10:21:12.871143"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.873471"], ["updated_at", "2015-10-29 10:21:12.873471"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.874677"], ["updated_at", "2015-10-29 10:21:12.874677"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.877197"], ["updated_at", "2015-10-29 10:21:12.877197"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.880925"], ["updated_at", "2015-10-29 10:21:12.880925"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:21:12.884375"], ["updated_at", "2015-10-29 10:21:12.884375"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.887907"], ["updated_at", "2015-10-29 10:21:12.887907"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.889982"], ["updated_at", "2015-10-29 10:21:12.889982"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:21:12.891890"], ["updated_at", "2015-10-29 10:21:12.891890"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.893149"], ["updated_at", "2015-10-29 10:21:12.893149"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.895376"], ["updated_at", "2015-10-29 10:21:12.895376"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.903795"], ["updated_at", "2015-10-29 10:21:12.903795"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:21:12.906301"], ["updated_at", "2015-10-29 10:21:12.906301"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.908467"], ["updated_at", "2015-10-29 10:21:12.908467"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.909576"], ["updated_at", "2015-10-29 10:21:12.909576"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:21:12.910965"], ["updated_at", "2015-10-29 10:21:12.910965"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.912369"], ["updated_at", "2015-10-29 10:21:12.912369"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:12.913641"], ["updated_at", "2015-10-29 10:21:12.913641"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.917224"], ["updated_at", "2015-10-29 10:21:12.917224"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:21:12.918813"], ["updated_at", "2015-10-29 10:21:12.918813"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:12.921011"], ["updated_at", "2015-10-29 10:21:12.921011"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:12.922162"], ["updated_at", "2015-10-29 10:21:12.922162"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:21:12.923523"], ["updated_at", "2015-10-29 10:21:12.923523"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:12.924615"], ["updated_at", "2015-10-29 10:21:12.924615"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:12.925888"], ["updated_at", "2015-10-29 10:21:12.925888"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:21:30.927299"], ["updated_at", "2015-10-29 10:21:30.927299"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:30.942810"], ["updated_at", "2015-10-29 10:21:30.942810"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:30.966252"], ["updated_at", "2015-10-29 10:21:30.966252"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:30.976785"], ["updated_at", "2015-10-29 10:21:30.976785"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:30.979944"], ["updated_at", "2015-10-29 10:21:30.979944"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:21:30.996726"], ["updated_at", "2015-10-29 10:21:30.996726"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:30.998653"], ["updated_at", "2015-10-29 10:21:30.998653"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.000802"], ["updated_at", "2015-10-29 10:21:31.000802"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.002019"], ["updated_at", "2015-10-29 10:21:31.002019"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.003466"], ["updated_at", "2015-10-29 10:21:31.003466"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:21:31.009078"], ["updated_at", "2015-10-29 10:21:31.009078"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.010999"], ["updated_at", "2015-10-29 10:21:31.010999"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.013036"], ["updated_at", "2015-10-29 10:21:31.013036"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.014275"], ["updated_at", "2015-10-29 10:21:31.014275"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.015737"], ["updated_at", "2015-10-29 10:21:31.015737"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:21:31.021191"], ["updated_at", "2015-10-29 10:21:31.021191"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.023098"], ["updated_at", "2015-10-29 10:21:31.023098"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.025178"], ["updated_at", "2015-10-29 10:21:31.025178"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.026342"], ["updated_at", "2015-10-29 10:21:31.026342"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.027780"], ["updated_at", "2015-10-29 10:21:31.027780"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:21:31.034664"], ["updated_at", "2015-10-29 10:21:31.034664"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.037106"], ["updated_at", "2015-10-29 10:21:31.037106"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.040203"], ["updated_at", "2015-10-29 10:21:31.040203"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.041536"], ["updated_at", "2015-10-29 10:21:31.041536"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.043255"], ["updated_at", "2015-10-29 10:21:31.043255"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:21:31.200819"], ["updated_at", "2015-10-29 10:21:31.200819"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.202876"], ["updated_at", "2015-10-29 10:21:31.202876"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.204925"], ["updated_at", "2015-10-29 10:21:31.204925"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.206104"], ["updated_at", "2015-10-29 10:21:31.206104"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.207546"], ["updated_at", "2015-10-29 10:21:31.207546"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:21:31.212724"], ["updated_at", "2015-10-29 10:21:31.212724"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.214820"], ["updated_at", "2015-10-29 10:21:31.214820"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.216906"], ["updated_at", "2015-10-29 10:21:31.216906"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.218079"], ["updated_at", "2015-10-29 10:21:31.218079"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.219516"], ["updated_at", "2015-10-29 10:21:31.219516"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.4ms Sent mail to user7@sleede.com (6.4ms) Date: Thu, 29 Oct 2015 11:21:31 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f32b3d4f7_261f3fc8988601dc43465@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:21:31.256856"], ["updated_at", "2015-10-29 10:21:31.256856"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.258750"], ["updated_at", "2015-10-29 10:21:31.258750"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.260726"], ["updated_at", "2015-10-29 10:21:31.260726"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.261847"], ["updated_at", "2015-10-29 10:21:31.261847"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.263310"], ["updated_at", "2015-10-29 10:21:31.263310"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.0ms Sent mail to user8@sleede.com (3.2ms) Date: Thu, 29 Oct 2015 11:21:31 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f32b41a2e_261f3fc8988601dc435fd@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:21:31.277190"], ["updated_at", "2015-10-29 10:21:31.277190"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.279191"], ["updated_at", "2015-10-29 10:21:31.279191"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.281224"], ["updated_at", "2015-10-29 10:21:31.281224"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.282343"], ["updated_at", "2015-10-29 10:21:31.282343"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.283879"], ["updated_at", "2015-10-29 10:21:31.283879"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:21:31 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f32b4620d_261f3fc8988601dc436eb@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:21:31.290964"], ["updated_at", "2015-10-29 10:21:31.290964"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.292892"], ["updated_at", "2015-10-29 10:21:31.292892"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.294855"], ["updated_at", "2015-10-29 10:21:31.294855"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.296071"], ["updated_at", "2015-10-29 10:21:31.296071"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.297463"], ["updated_at", "2015-10-29 10:21:31.297463"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user10@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:21:31 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f32b4971d_261f3fc8988601dc43794@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.304837"], ["updated_at", "2015-10-29 10:21:31.304837"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:21:31.307168"], ["updated_at", "2015-10-29 10:21:31.307168"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.310326"], ["updated_at", "2015-10-29 10:21:31.310326"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.312279"], ["updated_at", "2015-10-29 10:21:31.312279"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:21:31.314259"], ["updated_at", "2015-10-29 10:21:31.314259"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.316482"], ["updated_at", "2015-10-29 10:21:31.316482"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.320095"], ["updated_at", "2015-10-29 10:21:31.320095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.324150"], ["updated_at", "2015-10-29 10:21:31.324150"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.328678"], ["updated_at", "2015-10-29 10:21:31.328678"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:21:31.330162"], ["updated_at", "2015-10-29 10:21:31.330162"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.332209"], ["updated_at", "2015-10-29 10:21:31.332209"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.333319"], ["updated_at", "2015-10-29 10:21:31.333319"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:21:31.334652"], ["updated_at", "2015-10-29 10:21:31.334652"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.335732"], ["updated_at", "2015-10-29 10:21:31.335732"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.336954"], ["updated_at", "2015-10-29 10:21:31.336954"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.339101"], ["updated_at", "2015-10-29 10:21:31.339101"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.342363"], ["updated_at", "2015-10-29 10:21:31.342363"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:21:31.343829"], ["updated_at", "2015-10-29 10:21:31.343829"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.345873"], ["updated_at", "2015-10-29 10:21:31.345873"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.347289"], ["updated_at", "2015-10-29 10:21:31.347289"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.352027"], ["updated_at", "2015-10-29 10:21:31.352027"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user15@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:21:31 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f32b56d20_261f3fc8988601dc43813@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.359249"], ["updated_at", "2015-10-29 10:21:31.359249"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:21:31.360776"], ["updated_at", "2015-10-29 10:21:31.360776"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.364618"], ["updated_at", "2015-10-29 10:21:31.364618"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.366305"], ["updated_at", "2015-10-29 10:21:31.366305"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.368926"], ["updated_at", "2015-10-29 10:21:31.368926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e6aae318-3f3c-456d-8340-ccc368dc28ca) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.3ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] NotificationsMailer#send_mail_by: processed outbound mail in 5.2ms [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] Sent mail to user16@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] Date: Thu, 29 Oct 2015 11:21:31 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f32b61812_261f3fc8988601dc4399d@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [e6aae318-3f3c-456d-8340-ccc368dc28ca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.99ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.402263"], ["updated_at", "2015-10-29 10:21:31.402263"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:21:31.403722"], ["updated_at", "2015-10-29 10:21:31.403722"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.405734"], ["updated_at", "2015-10-29 10:21:31.405734"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.406848"], ["updated_at", "2015-10-29 10:21:31.406848"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.412192"], ["updated_at", "2015-10-29 10:21:31.412192"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:21:31.413695"], ["updated_at", "2015-10-29 10:21:31.413695"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.415712"], ["updated_at", "2015-10-29 10:21:31.415712"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.416807"], ["updated_at", "2015-10-29 10:21:31.416807"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.421057"], ["updated_at", "2015-10-29 10:21:31.421057"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:21:31.422700"], ["updated_at", "2015-10-29 10:21:31.422700"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.424773"], ["updated_at", "2015-10-29 10:21:31.424773"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.425918"], ["updated_at", "2015-10-29 10:21:31.425918"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:21:31.427305"], ["updated_at", "2015-10-29 10:21:31.427305"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.428396"], ["updated_at", "2015-10-29 10:21:31.428396"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.429657"], ["updated_at", "2015-10-29 10:21:31.429657"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.431298"], ["updated_at", "2015-10-29 10:21:31.431298"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.434965"], ["updated_at", "2015-10-29 10:21:31.434965"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:21:31.437345"], ["updated_at", "2015-10-29 10:21:31.437345"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.440925"], ["updated_at", "2015-10-29 10:21:31.440925"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.442705"], ["updated_at", "2015-10-29 10:21:31.442705"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:21:31.445357"], ["updated_at", "2015-10-29 10:21:31.445357"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.447020"], ["updated_at", "2015-10-29 10:21:31.447020"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.448624"], ["updated_at", "2015-10-29 10:21:31.448624"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.453037"], ["updated_at", "2015-10-29 10:21:31.453037"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.460282"], ["updated_at", "2015-10-29 10:21:31.460282"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:21:31.462250"], ["updated_at", "2015-10-29 10:21:31.462250"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.464361"], ["updated_at", "2015-10-29 10:21:31.464361"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.465506"], ["updated_at", "2015-10-29 10:21:31.465506"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:21:31.466861"], ["updated_at", "2015-10-29 10:21:31.466861"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.468398"], ["updated_at", "2015-10-29 10:21:31.468398"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.469751"], ["updated_at", "2015-10-29 10:21:31.469751"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:21:31.471386"], ["updated_at", "2015-10-29 10:21:31.471386"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.485242"], ["updated_at", "2015-10-29 10:21:31.485242"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:21:31.486736"], ["updated_at", "2015-10-29 10:21:31.486736"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.488715"], ["updated_at", "2015-10-29 10:21:31.488715"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.489893"], ["updated_at", "2015-10-29 10:21:31.489893"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.492873"], ["updated_at", "2015-10-29 10:21:31.492873"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.498491"], ["updated_at", "2015-10-29 10:21:31.498491"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:21:31.500442"], ["updated_at", "2015-10-29 10:21:31.500442"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.503071"], ["updated_at", "2015-10-29 10:21:31.503071"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.505523"], ["updated_at", "2015-10-29 10:21:31.505523"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:21:31.510437"], ["updated_at", "2015-10-29 10:21:31.510437"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.513639"], ["updated_at", "2015-10-29 10:21:31.513639"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.516148"], ["updated_at", "2015-10-29 10:21:31.516148"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.519548"], ["updated_at", "2015-10-29 10:21:31.519548"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:21:31.520986"], ["updated_at", "2015-10-29 10:21:31.520986"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.522946"], ["updated_at", "2015-10-29 10:21:31.522946"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.524046"], ["updated_at", "2015-10-29 10:21:31.524046"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:21:31.525381"], ["updated_at", "2015-10-29 10:21:31.525381"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.526462"], ["updated_at", "2015-10-29 10:21:31.526462"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:21:31.527657"], ["updated_at", "2015-10-29 10:21:31.527657"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.531638"], ["updated_at", "2015-10-29 10:21:31.531638"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:21:31.533102"], ["updated_at", "2015-10-29 10:21:31.533102"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:21:31.535030"], ["updated_at", "2015-10-29 10:21:31.535030"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:21:31.536145"], ["updated_at", "2015-10-29 10:21:31.536145"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:21:31.537512"], ["updated_at", "2015-10-29 10:21:31.537512"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:21:31.538567"], ["updated_at", "2015-10-29 10:21:31.538567"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:21:31.539799"], ["updated_at", "2015-10-29 10:21:31.539799"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (0.9ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:22:56.215442"], ["updated_at", "2015-10-29 10:22:56.215442"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.237166"], ["updated_at", "2015-10-29 10:22:56.237166"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.262001"], ["updated_at", "2015-10-29 10:22:56.262001"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.271590"], ["updated_at", "2015-10-29 10:22:56.271590"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.274560"], ["updated_at", "2015-10-29 10:22:56.274560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:22:56.291153"], ["updated_at", "2015-10-29 10:22:56.291153"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.293088"], ["updated_at", "2015-10-29 10:22:56.293088"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.295233"], ["updated_at", "2015-10-29 10:22:56.295233"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.296442"], ["updated_at", "2015-10-29 10:22:56.296442"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.297890"], ["updated_at", "2015-10-29 10:22:56.297890"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:22:56.303617"], ["updated_at", "2015-10-29 10:22:56.303617"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.305558"], ["updated_at", "2015-10-29 10:22:56.305558"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.307579"], ["updated_at", "2015-10-29 10:22:56.307579"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.308825"], ["updated_at", "2015-10-29 10:22:56.308825"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.310373"], ["updated_at", "2015-10-29 10:22:56.310373"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:22:56.315892"], ["updated_at", "2015-10-29 10:22:56.315892"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.317992"], ["updated_at", "2015-10-29 10:22:56.317992"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.320261"], ["updated_at", "2015-10-29 10:22:56.320261"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.321493"], ["updated_at", "2015-10-29 10:22:56.321493"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.322966"], ["updated_at", "2015-10-29 10:22:56.322966"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:22:56.329633"], ["updated_at", "2015-10-29 10:22:56.329633"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.332415"], ["updated_at", "2015-10-29 10:22:56.332415"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.335394"], ["updated_at", "2015-10-29 10:22:56.335394"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.337915"], ["updated_at", "2015-10-29 10:22:56.337915"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.344241"], ["updated_at", "2015-10-29 10:22:56.344241"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:22:56.488360"], ["updated_at", "2015-10-29 10:22:56.488360"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.490528"], ["updated_at", "2015-10-29 10:22:56.490528"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.492644"], ["updated_at", "2015-10-29 10:22:56.492644"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.493856"], ["updated_at", "2015-10-29 10:22:56.493856"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.495534"], ["updated_at", "2015-10-29 10:22:56.495534"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:22:56.501019"], ["updated_at", "2015-10-29 10:22:56.501019"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.502996"], ["updated_at", "2015-10-29 10:22:56.502996"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.505033"], ["updated_at", "2015-10-29 10:22:56.505033"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.506287"], ["updated_at", "2015-10-29 10:22:56.506287"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.507824"], ["updated_at", "2015-10-29 10:22:56.507824"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 23.3ms Sent mail to user7@sleede.com (6.1ms) Date: Thu, 29 Oct 2015 11:22:56 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f380833b3_26363fc6e84601d89092@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:22:56.542824"], ["updated_at", "2015-10-29 10:22:56.542824"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.544980"], ["updated_at", "2015-10-29 10:22:56.544980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.548158"], ["updated_at", "2015-10-29 10:22:56.548158"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.552243"], ["updated_at", "2015-10-29 10:22:56.552243"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.556767"], ["updated_at", "2015-10-29 10:22:56.556767"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user8@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:22:56 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f38089005_26363fc6e84601d891057@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:22:56.565691"], ["updated_at", "2015-10-29 10:22:56.565691"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.567578"], ["updated_at", "2015-10-29 10:22:56.567578"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.569462"], ["updated_at", "2015-10-29 10:22:56.569462"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.570576"], ["updated_at", "2015-10-29 10:22:56.570576"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.571999"], ["updated_at", "2015-10-29 10:22:56.571999"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:22:56 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f3808c653_26363fc6e84601d89115a@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:22:56.578956"], ["updated_at", "2015-10-29 10:22:56.578956"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.580930"], ["updated_at", "2015-10-29 10:22:56.580930"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.582925"], ["updated_at", "2015-10-29 10:22:56.582925"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.584071"], ["updated_at", "2015-10-29 10:22:56.584071"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.585443"], ["updated_at", "2015-10-29 10:22:56.585443"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user10@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:22:56 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f3808fc82_26363fc6e84601d8912fe@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.592094"], ["updated_at", "2015-10-29 10:22:56.592094"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:22:56.593809"], ["updated_at", "2015-10-29 10:22:56.593809"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.596879"], ["updated_at", "2015-10-29 10:22:56.596879"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.598400"], ["updated_at", "2015-10-29 10:22:56.598400"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:22:56.599911"], ["updated_at", "2015-10-29 10:22:56.599911"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.601166"], ["updated_at", "2015-10-29 10:22:56.601166"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.602824"], ["updated_at", "2015-10-29 10:22:56.602824"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.607580"], ["updated_at", "2015-10-29 10:22:56.607580"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.615863"], ["updated_at", "2015-10-29 10:22:56.615863"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:22:56.617415"], ["updated_at", "2015-10-29 10:22:56.617415"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.619363"], ["updated_at", "2015-10-29 10:22:56.619363"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.620484"], ["updated_at", "2015-10-29 10:22:56.620484"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:22:56.621810"], ["updated_at", "2015-10-29 10:22:56.621810"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.622921"], ["updated_at", "2015-10-29 10:22:56.622921"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.624153"], ["updated_at", "2015-10-29 10:22:56.624153"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.626146"], ["updated_at", "2015-10-29 10:22:56.626146"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.629409"], ["updated_at", "2015-10-29 10:22:56.629409"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:22:56.630919"], ["updated_at", "2015-10-29 10:22:56.630919"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.632928"], ["updated_at", "2015-10-29 10:22:56.632928"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.634039"], ["updated_at", "2015-10-29 10:22:56.634039"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.638764"], ["updated_at", "2015-10-29 10:22:56.638764"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user15@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:22:56 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f3809cce1_26363fc6e84601d8913bb@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.646157"], ["updated_at", "2015-10-29 10:22:56.646157"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:22:56.648258"], ["updated_at", "2015-10-29 10:22:56.648258"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.651134"], ["updated_at", "2015-10-29 10:22:56.651134"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.652768"], ["updated_at", "2015-10-29 10:22:56.652768"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.655484"], ["updated_at", "2015-10-29 10:22:56.655484"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 36913de8-ee7a-48a5-a135-70e6981cab9c) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] NotificationsMailer#send_mail_by: processed outbound mail in 5.5ms [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] Sent mail to user16@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] Date: Thu, 29 Oct 2015 11:22:56 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f380a7143_26363fc6e84601d8914f1@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [36913de8-ee7a-48a5-a135-70e6981cab9c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.19ms [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.687373"], ["updated_at", "2015-10-29 10:22:56.687373"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:22:56.688930"], ["updated_at", "2015-10-29 10:22:56.688930"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.691089"], ["updated_at", "2015-10-29 10:22:56.691089"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.692240"], ["updated_at", "2015-10-29 10:22:56.692240"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.698041"], ["updated_at", "2015-10-29 10:22:56.698041"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:22:56.699732"], ["updated_at", "2015-10-29 10:22:56.699732"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.702360"], ["updated_at", "2015-10-29 10:22:56.702360"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.703821"], ["updated_at", "2015-10-29 10:22:56.703821"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.708179"], ["updated_at", "2015-10-29 10:22:56.708179"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:22:56.709804"], ["updated_at", "2015-10-29 10:22:56.709804"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.712013"], ["updated_at", "2015-10-29 10:22:56.712013"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.713372"], ["updated_at", "2015-10-29 10:22:56.713372"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:22:56.718278"], ["updated_at", "2015-10-29 10:22:56.718278"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.721940"], ["updated_at", "2015-10-29 10:22:56.721940"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.725310"], ["updated_at", "2015-10-29 10:22:56.725310"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.727544"], ["updated_at", "2015-10-29 10:22:56.727544"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.731553"], ["updated_at", "2015-10-29 10:22:56.731553"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:22:56.733079"], ["updated_at", "2015-10-29 10:22:56.733079"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.735136"], ["updated_at", "2015-10-29 10:22:56.735136"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.736314"], ["updated_at", "2015-10-29 10:22:56.736314"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:22:56.737711"], ["updated_at", "2015-10-29 10:22:56.737711"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.738827"], ["updated_at", "2015-10-29 10:22:56.738827"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.740231"], ["updated_at", "2015-10-29 10:22:56.740231"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.742378"], ["updated_at", "2015-10-29 10:22:56.742378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.745561"], ["updated_at", "2015-10-29 10:22:56.745561"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:22:56.747130"], ["updated_at", "2015-10-29 10:22:56.747130"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.749291"], ["updated_at", "2015-10-29 10:22:56.749291"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.750543"], ["updated_at", "2015-10-29 10:22:56.750543"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:22:56.752643"], ["updated_at", "2015-10-29 10:22:56.752643"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.754434"], ["updated_at", "2015-10-29 10:22:56.754434"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.756509"], ["updated_at", "2015-10-29 10:22:56.756509"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:22:56.758697"], ["updated_at", "2015-10-29 10:22:56.758697"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.779347"], ["updated_at", "2015-10-29 10:22:56.779347"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:22:56.780958"], ["updated_at", "2015-10-29 10:22:56.780958"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.783059"], ["updated_at", "2015-10-29 10:22:56.783059"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.784195"], ["updated_at", "2015-10-29 10:22:56.784195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.786635"], ["updated_at", "2015-10-29 10:22:56.786635"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.790236"], ["updated_at", "2015-10-29 10:22:56.790236"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:22:56.791726"], ["updated_at", "2015-10-29 10:22:56.791726"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.793748"], ["updated_at", "2015-10-29 10:22:56.793748"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.794859"], ["updated_at", "2015-10-29 10:22:56.794859"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:22:56.796199"], ["updated_at", "2015-10-29 10:22:56.796199"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.797256"], ["updated_at", "2015-10-29 10:22:56.797256"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.798459"], ["updated_at", "2015-10-29 10:22:56.798459"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.802125"], ["updated_at", "2015-10-29 10:22:56.802125"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:22:56.803575"], ["updated_at", "2015-10-29 10:22:56.803575"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.805545"], ["updated_at", "2015-10-29 10:22:56.805545"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.806641"], ["updated_at", "2015-10-29 10:22:56.806641"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:22:56.807974"], ["updated_at", "2015-10-29 10:22:56.807974"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.809042"], ["updated_at", "2015-10-29 10:22:56.809042"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:22:56.810232"], ["updated_at", "2015-10-29 10:22:56.810232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.813943"], ["updated_at", "2015-10-29 10:22:56.813943"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:22:56.815581"], ["updated_at", "2015-10-29 10:22:56.815581"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:22:56.818093"], ["updated_at", "2015-10-29 10:22:56.818093"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:22:56.819517"], ["updated_at", "2015-10-29 10:22:56.819517"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:22:56.821237"], ["updated_at", "2015-10-29 10:22:56.821237"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:22:56.823055"], ["updated_at", "2015-10-29 10:22:56.823055"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:22:56.824544"], ["updated_at", "2015-10-29 10:22:56.824544"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:25:31.207174"], ["updated_at", "2015-10-29 10:25:31.207174"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.224512"], ["updated_at", "2015-10-29 10:25:31.224512"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.246344"], ["updated_at", "2015-10-29 10:25:31.246344"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.253995"], ["updated_at", "2015-10-29 10:25:31.253995"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.256765"], ["updated_at", "2015-10-29 10:25:31.256765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms) [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:25:31.293872"], ["updated_at", "2015-10-29 10:25:31.293872"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.295980"], ["updated_at", "2015-10-29 10:25:31.295980"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.298267"], ["updated_at", "2015-10-29 10:25:31.298267"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.299459"], ["updated_at", "2015-10-29 10:25:31.299459"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.302110"], ["updated_at", "2015-10-29 10:25:31.302110"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:25:31.310929"], ["updated_at", "2015-10-29 10:25:31.310929"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.314116"], ["updated_at", "2015-10-29 10:25:31.314116"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.316760"], ["updated_at", "2015-10-29 10:25:31.316760"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.318189"], ["updated_at", "2015-10-29 10:25:31.318189"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.320267"], ["updated_at", "2015-10-29 10:25:31.320267"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms) [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:25:31.333111"], ["updated_at", "2015-10-29 10:25:31.333111"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.336061"], ["updated_at", "2015-10-29 10:25:31.336061"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.339156"], ["updated_at", "2015-10-29 10:25:31.339156"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.342534"], ["updated_at", "2015-10-29 10:25:31.342534"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.346297"], ["updated_at", "2015-10-29 10:25:31.346297"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:25:31.358755"], ["updated_at", "2015-10-29 10:25:31.358755"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.360761"], ["updated_at", "2015-10-29 10:25:31.360761"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.363026"], ["updated_at", "2015-10-29 10:25:31.363026"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.364312"], ["updated_at", "2015-10-29 10:25:31.364312"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.365851"], ["updated_at", "2015-10-29 10:25:31.365851"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#update_all as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:25:31.519918"], ["updated_at", "2015-10-29 10:25:31.519918"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.522257"], ["updated_at", "2015-10-29 10:25:31.522257"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.525141"], ["updated_at", "2015-10-29 10:25:31.525141"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.526508"], ["updated_at", "2015-10-29 10:25:31.526508"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.528074"], ["updated_at", "2015-10-29 10:25:31.528074"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:25:31.534024"], ["updated_at", "2015-10-29 10:25:31.534024"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.536282"], ["updated_at", "2015-10-29 10:25:31.536282"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.538558"], ["updated_at", "2015-10-29 10:25:31.538558"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.539865"], ["updated_at", "2015-10-29 10:25:31.539865"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.541473"], ["updated_at", "2015-10-29 10:25:31.541473"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.8ms Sent mail to user7@sleede.com (7.9ms) Date: Thu, 29 Oct 2015 11:25:31 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f41b8a7a9_265d3fd9b58601e0102a0@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:25:31.574543"], ["updated_at", "2015-10-29 10:25:31.574543"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.577273"], ["updated_at", "2015-10-29 10:25:31.577273"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.579435"], ["updated_at", "2015-10-29 10:25:31.579435"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.580568"], ["updated_at", "2015-10-29 10:25:31.580568"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.581920"], ["updated_at", "2015-10-29 10:25:31.581920"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.1ms Sent mail to user8@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 11:25:31 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f41b8f487_265d3fd9b58601e01035d@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:25:31.593232"], ["updated_at", "2015-10-29 10:25:31.593232"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.597037"], ["updated_at", "2015-10-29 10:25:31.597037"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.602273"], ["updated_at", "2015-10-29 10:25:31.602273"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.603540"], ["updated_at", "2015-10-29 10:25:31.603540"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.604938"], ["updated_at", "2015-10-29 10:25:31.604938"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.8ms Sent mail to user9@sleede.com (2.1ms) Date: Thu, 29 Oct 2015 11:25:31 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f41b949d1_265d3fd9b58601e0104b6@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:25:31.613124"], ["updated_at", "2015-10-29 10:25:31.613124"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.615307"], ["updated_at", "2015-10-29 10:25:31.615307"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.617841"], ["updated_at", "2015-10-29 10:25:31.617841"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.619872"], ["updated_at", "2015-10-29 10:25:31.619872"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.621968"], ["updated_at", "2015-10-29 10:25:31.621968"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user10@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:25:31 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f41b98c32_265d3fd9b58601e010536@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.630410"], ["updated_at", "2015-10-29 10:25:31.630410"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:25:31.632464"], ["updated_at", "2015-10-29 10:25:31.632464"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.635637"], ["updated_at", "2015-10-29 10:25:31.635637"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.637102"], ["updated_at", "2015-10-29 10:25:31.637102"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:25:31.638734"], ["updated_at", "2015-10-29 10:25:31.638734"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.640191"], ["updated_at", "2015-10-29 10:25:31.640191"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.644866"], ["updated_at", "2015-10-29 10:25:31.644866"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.649733"], ["updated_at", "2015-10-29 10:25:31.649733"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.654371"], ["updated_at", "2015-10-29 10:25:31.654371"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:25:31.655837"], ["updated_at", "2015-10-29 10:25:31.655837"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.657843"], ["updated_at", "2015-10-29 10:25:31.657843"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.658960"], ["updated_at", "2015-10-29 10:25:31.658960"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:25:31.660257"], ["updated_at", "2015-10-29 10:25:31.660257"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.661342"], ["updated_at", "2015-10-29 10:25:31.661342"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.662549"], ["updated_at", "2015-10-29 10:25:31.662549"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.664390"], ["updated_at", "2015-10-29 10:25:31.664390"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.667900"], ["updated_at", "2015-10-29 10:25:31.667900"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:25:31.669439"], ["updated_at", "2015-10-29 10:25:31.669439"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.671517"], ["updated_at", "2015-10-29 10:25:31.671517"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.672621"], ["updated_at", "2015-10-29 10:25:31.672621"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.676607"], ["updated_at", "2015-10-29 10:25:31.676607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.2ms Sent mail to user15@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:25:31 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f41ba66b8_265d3fd9b58601e010615@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.685768"], ["updated_at", "2015-10-29 10:25:31.685768"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:25:31.687596"], ["updated_at", "2015-10-29 10:25:31.687596"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.690837"], ["updated_at", "2015-10-29 10:25:31.690837"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.696601"], ["updated_at", "2015-10-29 10:25:31.696601"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.702375"], ["updated_at", "2015-10-29 10:25:31.702375"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1ef581a2-bce6-46dc-84d8-bad2cd023964) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] NotificationsMailer#send_mail_by: processed outbound mail in 3.8ms [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] Sent mail to user16@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] Date: Thu, 29 Oct 2015 11:25:31 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f41bb1268_265d3fd9b58601e01072@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [1ef581a2-bce6-46dc-84d8-bad2cd023964] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.6ms [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.730928"], ["updated_at", "2015-10-29 10:25:31.730928"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:25:31.734728"], ["updated_at", "2015-10-29 10:25:31.734728"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.740016"], ["updated_at", "2015-10-29 10:25:31.740016"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.746279"], ["updated_at", "2015-10-29 10:25:31.746279"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.764799"], ["updated_at", "2015-10-29 10:25:31.764799"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:25:31.766504"], ["updated_at", "2015-10-29 10:25:31.766504"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.768987"], ["updated_at", "2015-10-29 10:25:31.768987"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.770169"], ["updated_at", "2015-10-29 10:25:31.770169"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (16.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.790065"], ["updated_at", "2015-10-29 10:25:31.790065"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:25:31.795184"], ["updated_at", "2015-10-29 10:25:31.795184"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.798115"], ["updated_at", "2015-10-29 10:25:31.798115"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.801341"], ["updated_at", "2015-10-29 10:25:31.801341"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:25:31.803490"], ["updated_at", "2015-10-29 10:25:31.803490"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.805217"], ["updated_at", "2015-10-29 10:25:31.805217"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.807232"], ["updated_at", "2015-10-29 10:25:31.807232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.809628"], ["updated_at", "2015-10-29 10:25:31.809628"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.835967"], ["updated_at", "2015-10-29 10:25:31.835967"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:25:31.837877"], ["updated_at", "2015-10-29 10:25:31.837877"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.840229"], ["updated_at", "2015-10-29 10:25:31.840229"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.841557"], ["updated_at", "2015-10-29 10:25:31.841557"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:25:31.843135"], ["updated_at", "2015-10-29 10:25:31.843135"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.844757"], ["updated_at", "2015-10-29 10:25:31.844757"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.846169"], ["updated_at", "2015-10-29 10:25:31.846169"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.847905"], ["updated_at", "2015-10-29 10:25:31.847905"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.850976"], ["updated_at", "2015-10-29 10:25:31.850976"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:25:31.852456"], ["updated_at", "2015-10-29 10:25:31.852456"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.854708"], ["updated_at", "2015-10-29 10:25:31.854708"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.855873"], ["updated_at", "2015-10-29 10:25:31.855873"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:25:31.857187"], ["updated_at", "2015-10-29 10:25:31.857187"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.858267"], ["updated_at", "2015-10-29 10:25:31.858267"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.859586"], ["updated_at", "2015-10-29 10:25:31.859586"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:25:31.861830"], ["updated_at", "2015-10-29 10:25:31.861830"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifications" WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.871424"], ["updated_at", "2015-10-29 10:25:31.871424"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:25:31.873168"], ["updated_at", "2015-10-29 10:25:31.873168"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.876365"], ["updated_at", "2015-10-29 10:25:31.876365"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.878127"], ["updated_at", "2015-10-29 10:25:31.878127"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.881270"], ["updated_at", "2015-10-29 10:25:31.881270"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.884511"], ["updated_at", "2015-10-29 10:25:31.884511"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:25:31.885907"], ["updated_at", "2015-10-29 10:25:31.885907"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.887824"], ["updated_at", "2015-10-29 10:25:31.887824"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.888906"], ["updated_at", "2015-10-29 10:25:31.888906"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:25:31.890273"], ["updated_at", "2015-10-29 10:25:31.890273"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.893894"], ["updated_at", "2015-10-29 10:25:31.893894"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.896785"], ["updated_at", "2015-10-29 10:25:31.896785"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.903298"], ["updated_at", "2015-10-29 10:25:31.903298"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:25:31.904740"], ["updated_at", "2015-10-29 10:25:31.904740"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.906721"], ["updated_at", "2015-10-29 10:25:31.906721"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.907850"], ["updated_at", "2015-10-29 10:25:31.907850"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:25:31.909225"], ["updated_at", "2015-10-29 10:25:31.909225"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.910287"], ["updated_at", "2015-10-29 10:25:31.910287"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:25:31.911472"], ["updated_at", "2015-10-29 10:25:31.911472"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.915440"], ["updated_at", "2015-10-29 10:25:31.915440"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:25:31.916835"], ["updated_at", "2015-10-29 10:25:31.916835"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:25:31.918830"], ["updated_at", "2015-10-29 10:25:31.918830"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:25:31.919964"], ["updated_at", "2015-10-29 10:25:31.919964"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:25:31.921815"], ["updated_at", "2015-10-29 10:25:31.921815"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:25:31.923130"], ["updated_at", "2015-10-29 10:25:31.923130"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:25:31.925476"], ["updated_at", "2015-10-29 10:25:31.925476"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[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.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.8ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.7ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:28:03.237778"], ["updated_at", "2015-10-29 10:28:03.237778"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.254126"], ["updated_at", "2015-10-29 10:28:03.254126"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.2ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.275273"], ["updated_at", "2015-10-29 10:28:03.275273"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.282690"], ["updated_at", "2015-10-29 10:28:03.282690"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.285315"], ["updated_at", "2015-10-29 10:28:03.285315"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/index.json.jbuilder (0.4ms) Completed 200 OK in 22ms (Views: 14.1ms | ActiveRecord: 0.0ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:28:03.325137"], ["updated_at", "2015-10-29 10:28:03.325137"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.327238"], ["updated_at", "2015-10-29 10:28:03.327238"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.329485"], ["updated_at", "2015-10-29 10:28:03.329485"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.330726"], ["updated_at", "2015-10-29 10:28:03.330726"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.332199"], ["updated_at", "2015-10-29 10:28:03.332199"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/index.json.jbuilder (13.0ms) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:28:03.354248"], ["updated_at", "2015-10-29 10:28:03.354248"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.356147"], ["updated_at", "2015-10-29 10:28:03.356147"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.359005"], ["updated_at", "2015-10-29 10:28:03.359005"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.361529"], ["updated_at", "2015-10-29 10:28:03.361529"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.363613"], ["updated_at", "2015-10-29 10:28:03.363613"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/show.json.jbuilder (5.6ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.4ms) [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:28:03.385122"], ["updated_at", "2015-10-29 10:28:03.385122"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.387170"], ["updated_at", "2015-10-29 10:28:03.387170"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.389481"], ["updated_at", "2015-10-29 10:28:03.389481"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.390726"], ["updated_at", "2015-10-29 10:28:03.390726"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.392608"], ["updated_at", "2015-10-29 10:28:03.392608"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:28:03.403903"], ["updated_at", "2015-10-29 10:28:03.403903"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.405938"], ["updated_at", "2015-10-29 10:28:03.405938"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.408192"], ["updated_at", "2015-10-29 10:28:03.408192"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.409490"], ["updated_at", "2015-10-29 10:28:03.409490"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.410981"], ["updated_at", "2015-10-29 10:28:03.410981"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:28:03.585495"], ["updated_at", "2015-10-29 10:28:03.585495"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.587499"], ["updated_at", "2015-10-29 10:28:03.587499"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.589628"], ["updated_at", "2015-10-29 10:28:03.589628"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.590839"], ["updated_at", "2015-10-29 10:28:03.590839"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.592296"], ["updated_at", "2015-10-29 10:28:03.592296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:28:03.597759"], ["updated_at", "2015-10-29 10:28:03.597759"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.599709"], ["updated_at", "2015-10-29 10:28:03.599709"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.601846"], ["updated_at", "2015-10-29 10:28:03.601846"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.603020"], ["updated_at", "2015-10-29 10:28:03.603020"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.604549"], ["updated_at", "2015-10-29 10:28:03.604549"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.9ms Sent mail to user7@sleede.com (7.3ms) Date: Thu, 29 Oct 2015 11:28:03 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f4b399afd_267e3ff37cc521dc29da@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:28:03.636326"], ["updated_at", "2015-10-29 10:28:03.636326"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.638730"], ["updated_at", "2015-10-29 10:28:03.638730"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.641253"], ["updated_at", "2015-10-29 10:28:03.641253"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.642387"], ["updated_at", "2015-10-29 10:28:03.642387"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.643765"], ["updated_at", "2015-10-29 10:28:03.643765"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user8@sleede.com (2.5ms) Date: Thu, 29 Oct 2015 11:28:03 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f4b39e235_267e3ff37cc521dc30cc@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:28:03.654608"], ["updated_at", "2015-10-29 10:28:03.654608"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.658580"], ["updated_at", "2015-10-29 10:28:03.658580"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.660744"], ["updated_at", "2015-10-29 10:28:03.660744"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.662176"], ["updated_at", "2015-10-29 10:28:03.662176"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.663678"], ["updated_at", "2015-10-29 10:28:03.663678"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.2ms) Date: Thu, 29 Oct 2015 11:28:03 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f4b3a2b8f_267e3ff37cc521dc3181@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:28:03.669956"], ["updated_at", "2015-10-29 10:28:03.669956"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.671827"], ["updated_at", "2015-10-29 10:28:03.671827"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.674108"], ["updated_at", "2015-10-29 10:28:03.674108"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.675288"], ["updated_at", "2015-10-29 10:28:03.675288"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.676755"], ["updated_at", "2015-10-29 10:28:03.676755"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:28:03 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f4b3a6095_267e3ff37cc521dc3245@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.683367"], ["updated_at", "2015-10-29 10:28:03.683367"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:28:03.685501"], ["updated_at", "2015-10-29 10:28:03.685501"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.690240"], ["updated_at", "2015-10-29 10:28:03.690240"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.692310"], ["updated_at", "2015-10-29 10:28:03.692310"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:28:03.694521"], ["updated_at", "2015-10-29 10:28:03.694521"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.696446"], ["updated_at", "2015-10-29 10:28:03.696446"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.700486"], ["updated_at", "2015-10-29 10:28:03.700486"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.704462"], ["updated_at", "2015-10-29 10:28:03.704462"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.709335"], ["updated_at", "2015-10-29 10:28:03.709335"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:28:03.710767"], ["updated_at", "2015-10-29 10:28:03.710767"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.712870"], ["updated_at", "2015-10-29 10:28:03.712870"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.714060"], ["updated_at", "2015-10-29 10:28:03.714060"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:28:03.715422"], ["updated_at", "2015-10-29 10:28:03.715422"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.716462"], ["updated_at", "2015-10-29 10:28:03.716462"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.717639"], ["updated_at", "2015-10-29 10:28:03.717639"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.719866"], ["updated_at", "2015-10-29 10:28:03.719866"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.722977"], ["updated_at", "2015-10-29 10:28:03.722977"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:28:03.724479"], ["updated_at", "2015-10-29 10:28:03.724479"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.726446"], ["updated_at", "2015-10-29 10:28:03.726446"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.727572"], ["updated_at", "2015-10-29 10:28:03.727572"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.729737"], ["updated_at", "2015-10-29 10:28:03.729737"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user15@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:28:03 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f4b3b3005_267e3ff37cc521dc33a9@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.736472"], ["updated_at", "2015-10-29 10:28:03.736472"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:28:03.737953"], ["updated_at", "2015-10-29 10:28:03.737953"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.740193"], ["updated_at", "2015-10-29 10:28:03.740193"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.741419"], ["updated_at", "2015-10-29 10:28:03.741419"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.743668"], ["updated_at", "2015-10-29 10:28:03.743668"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b2a289ce-63a5-4346-9357-ce78020d7245) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] Sent mail to user16@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] Date: Thu, 29 Oct 2015 11:28:03 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f4b3bc699_267e3ff37cc521dc3472@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [b2a289ce-63a5-4346-9357-ce78020d7245] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.97ms [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.775113"], ["updated_at", "2015-10-29 10:28:03.775113"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:28:03.776667"], ["updated_at", "2015-10-29 10:28:03.776667"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.778726"], ["updated_at", "2015-10-29 10:28:03.778726"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.779838"], ["updated_at", "2015-10-29 10:28:03.779838"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.785867"], ["updated_at", "2015-10-29 10:28:03.785867"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:28:03.787400"], ["updated_at", "2015-10-29 10:28:03.787400"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.789545"], ["updated_at", "2015-10-29 10:28:03.789545"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.790795"], ["updated_at", "2015-10-29 10:28:03.790795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.795149"], ["updated_at", "2015-10-29 10:28:03.795149"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:28:03.796619"], ["updated_at", "2015-10-29 10:28:03.796619"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.798667"], ["updated_at", "2015-10-29 10:28:03.798667"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.799760"], ["updated_at", "2015-10-29 10:28:03.799760"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:28:03.801098"], ["updated_at", "2015-10-29 10:28:03.801098"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.802186"], ["updated_at", "2015-10-29 10:28:03.802186"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.803455"], ["updated_at", "2015-10-29 10:28:03.803455"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.805170"], ["updated_at", "2015-10-29 10:28:03.805170"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.809439"], ["updated_at", "2015-10-29 10:28:03.809439"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:28:03.812227"], ["updated_at", "2015-10-29 10:28:03.812227"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.815305"], ["updated_at", "2015-10-29 10:28:03.815305"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.817139"], ["updated_at", "2015-10-29 10:28:03.817139"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:28:03.819718"], ["updated_at", "2015-10-29 10:28:03.819718"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.822851"], ["updated_at", "2015-10-29 10:28:03.822851"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.825534"], ["updated_at", "2015-10-29 10:28:03.825534"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.829163"], ["updated_at", "2015-10-29 10:28:03.829163"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.832796"], ["updated_at", "2015-10-29 10:28:03.832796"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:28:03.834330"], ["updated_at", "2015-10-29 10:28:03.834330"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.836464"], ["updated_at", "2015-10-29 10:28:03.836464"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.837631"], ["updated_at", "2015-10-29 10:28:03.837631"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:28:03.838997"], ["updated_at", "2015-10-29 10:28:03.838997"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.840100"], ["updated_at", "2015-10-29 10:28:03.840100"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.841363"], ["updated_at", "2015-10-29 10:28:03.841363"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:28:03.843306"], ["updated_at", "2015-10-29 10:28:03.843306"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.853451"], ["updated_at", "2015-10-29 10:28:03.853451"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:28:03.855067"], ["updated_at", "2015-10-29 10:28:03.855067"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.857460"], ["updated_at", "2015-10-29 10:28:03.857460"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.858714"], ["updated_at", "2015-10-29 10:28:03.858714"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.861235"], ["updated_at", "2015-10-29 10:28:03.861235"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.864825"], ["updated_at", "2015-10-29 10:28:03.864825"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:28:03.868303"], ["updated_at", "2015-10-29 10:28:03.868303"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.871485"], ["updated_at", "2015-10-29 10:28:03.871485"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.873325"], ["updated_at", "2015-10-29 10:28:03.873325"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:28:03.875230"], ["updated_at", "2015-10-29 10:28:03.875230"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.876391"], ["updated_at", "2015-10-29 10:28:03.876391"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.877602"], ["updated_at", "2015-10-29 10:28:03.877602"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.883114"], ["updated_at", "2015-10-29 10:28:03.883114"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:28:03.886382"], ["updated_at", "2015-10-29 10:28:03.886382"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.891915"], ["updated_at", "2015-10-29 10:28:03.891915"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.893264"], ["updated_at", "2015-10-29 10:28:03.893264"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:28:03.894656"], ["updated_at", "2015-10-29 10:28:03.894656"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.895694"], ["updated_at", "2015-10-29 10:28:03.895694"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:28:03.896881"], ["updated_at", "2015-10-29 10:28:03.896881"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.900627"], ["updated_at", "2015-10-29 10:28:03.900627"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:28:03.902065"], ["updated_at", "2015-10-29 10:28:03.902065"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:28:03.904091"], ["updated_at", "2015-10-29 10:28:03.904091"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:28:03.905211"], ["updated_at", "2015-10-29 10:28:03.905211"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:28:03.906529"], ["updated_at", "2015-10-29 10:28:03.906529"]] [1m[36m (0.0ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:28:03.907574"], ["updated_at", "2015-10-29 10:28:03.907574"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:28:03.909069"], ["updated_at", "2015-10-29 10:28:03.909069"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (0.9ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.7ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:30:18.999256"], ["updated_at", "2015-10-29 10:30:18.999256"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.016346"], ["updated_at", "2015-10-29 10:30:19.016346"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.3ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.039334"], ["updated_at", "2015-10-29 10:30:19.039334"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.047208"], ["updated_at", "2015-10-29 10:30:19.047208"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.050063"], ["updated_at", "2015-10-29 10:30:19.050063"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:30:19.076155"], ["updated_at", "2015-10-29 10:30:19.076155"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.078390"], ["updated_at", "2015-10-29 10:30:19.078390"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.080703"], ["updated_at", "2015-10-29 10:30:19.080703"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.082039"], ["updated_at", "2015-10-29 10:30:19.082039"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.083695"], ["updated_at", "2015-10-29 10:30:19.083695"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#index as JSON Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:30:19.092499"], ["updated_at", "2015-10-29 10:30:19.092499"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.094646"], ["updated_at", "2015-10-29 10:30:19.094646"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.096996"], ["updated_at", "2015-10-29 10:30:19.096996"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.098275"], ["updated_at", "2015-10-29 10:30:19.098275"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.099846"], ["updated_at", "2015-10-29 10:30:19.099846"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:30:19.108418"], ["updated_at", "2015-10-29 10:30:19.108418"]] [1m[36m (0.3ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.112859"], ["updated_at", "2015-10-29 10:30:19.112859"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.115869"], ["updated_at", "2015-10-29 10:30:19.115869"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.118211"], ["updated_at", "2015-10-29 10:30:19.118211"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.120260"], ["updated_at", "2015-10-29 10:30:19.120260"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:30:19.136369"], ["updated_at", "2015-10-29 10:30:19.136369"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.138768"], ["updated_at", "2015-10-29 10:30:19.138768"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.141281"], ["updated_at", "2015-10-29 10:30:19.141281"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.142656"], ["updated_at", "2015-10-29 10:30:19.142656"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.144554"], ["updated_at", "2015-10-29 10:30:19.144554"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update_all as JSON Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:30:19.292418"], ["updated_at", "2015-10-29 10:30:19.292418"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.294518"], ["updated_at", "2015-10-29 10:30:19.294518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.296789"], ["updated_at", "2015-10-29 10:30:19.296789"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.298067"], ["updated_at", "2015-10-29 10:30:19.298067"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.299608"], ["updated_at", "2015-10-29 10:30:19.299608"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:30:19.305119"], ["updated_at", "2015-10-29 10:30:19.305119"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.307235"], ["updated_at", "2015-10-29 10:30:19.307235"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.309505"], ["updated_at", "2015-10-29 10:30:19.309505"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.310849"], ["updated_at", "2015-10-29 10:30:19.310849"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.313451"], ["updated_at", "2015-10-29 10:30:19.313451"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.4ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 26.1ms Sent mail to user7@sleede.com (6.8ms) Date: Thu, 29 Oct 2015 11:30:19 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f53b54b27_269d3ffcfa45e1d88954e@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:30:19.356406"], ["updated_at", "2015-10-29 10:30:19.356406"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.361368"], ["updated_at", "2015-10-29 10:30:19.361368"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.364852"], ["updated_at", "2015-10-29 10:30:19.364852"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.366086"], ["updated_at", "2015-10-29 10:30:19.366086"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.367458"], ["updated_at", "2015-10-29 10:30:19.367458"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user8@sleede.com (2.2ms) Date: Thu, 29 Oct 2015 11:30:19 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f53b5a82c_269d3ffcfa45e1d88963b@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:30:19.376082"], ["updated_at", "2015-10-29 10:30:19.376082"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.378157"], ["updated_at", "2015-10-29 10:30:19.378157"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.380485"], ["updated_at", "2015-10-29 10:30:19.380485"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.381807"], ["updated_at", "2015-10-29 10:30:19.381807"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.383313"], ["updated_at", "2015-10-29 10:30:19.383313"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:30:19 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f53b5e631_269d3ffcfa45e1d8897bd@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:30:19.391396"], ["updated_at", "2015-10-29 10:30:19.391396"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.393868"], ["updated_at", "2015-10-29 10:30:19.393868"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.396716"], ["updated_at", "2015-10-29 10:30:19.396716"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.398527"], ["updated_at", "2015-10-29 10:30:19.398527"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.400259"], ["updated_at", "2015-10-29 10:30:19.400259"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.5ms Sent mail to user10@sleede.com (2.1ms) Date: Thu, 29 Oct 2015 11:30:19 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f53b637ec_269d3ffcfa45e1d889896@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.413644"], ["updated_at", "2015-10-29 10:30:19.413644"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:30:19.415388"], ["updated_at", "2015-10-29 10:30:19.415388"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.417887"], ["updated_at", "2015-10-29 10:30:19.417887"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.419120"], ["updated_at", "2015-10-29 10:30:19.419120"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:30:19.420974"], ["updated_at", "2015-10-29 10:30:19.420974"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.422645"], ["updated_at", "2015-10-29 10:30:19.422645"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.424063"], ["updated_at", "2015-10-29 10:30:19.424063"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.425699"], ["updated_at", "2015-10-29 10:30:19.425699"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.428828"], ["updated_at", "2015-10-29 10:30:19.428828"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:30:19.430478"], ["updated_at", "2015-10-29 10:30:19.430478"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.432792"], ["updated_at", "2015-10-29 10:30:19.432792"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.433982"], ["updated_at", "2015-10-29 10:30:19.433982"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:30:19.435385"], ["updated_at", "2015-10-29 10:30:19.435385"]] [1m[36m (0.0ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.436552"], ["updated_at", "2015-10-29 10:30:19.436552"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.437867"], ["updated_at", "2015-10-29 10:30:19.437867"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.439915"], ["updated_at", "2015-10-29 10:30:19.439915"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.443166"], ["updated_at", "2015-10-29 10:30:19.443166"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:30:19.444772"], ["updated_at", "2015-10-29 10:30:19.444772"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.449830"], ["updated_at", "2015-10-29 10:30:19.449830"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.451971"], ["updated_at", "2015-10-29 10:30:19.451971"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.459380"], ["updated_at", "2015-10-29 10:30:19.459380"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.1ms Sent mail to user15@sleede.com (2.3ms) Date: Thu, 29 Oct 2015 11:30:19 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f53b71f0d_269d3ffcfa45e1d889990@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.470524"], ["updated_at", "2015-10-29 10:30:19.470524"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:30:19.472116"], ["updated_at", "2015-10-29 10:30:19.472116"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.474250"], ["updated_at", "2015-10-29 10:30:19.474250"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.475416"], ["updated_at", "2015-10-29 10:30:19.475416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.477174"], ["updated_at", "2015-10-29 10:30:19.477174"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 45046349-8abe-4f74-a5bb-7dc726aa8fce) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] NotificationsMailer#send_mail_by: processed outbound mail in 5.5ms [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] Sent mail to user16@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] Date: Thu, 29 Oct 2015 11:30:19 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f53b7ad62_269d3ffcfa45e1d8900af@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [45046349-8abe-4f74-a5bb-7dc726aa8fce] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.24ms [1m[35m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.507869"], ["updated_at", "2015-10-29 10:30:19.507869"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:30:19.510359"], ["updated_at", "2015-10-29 10:30:19.510359"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.513687"], ["updated_at", "2015-10-29 10:30:19.513687"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.515355"], ["updated_at", "2015-10-29 10:30:19.515355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.526132"], ["updated_at", "2015-10-29 10:30:19.526132"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:30:19.529108"], ["updated_at", "2015-10-29 10:30:19.529108"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.531723"], ["updated_at", "2015-10-29 10:30:19.531723"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.532906"], ["updated_at", "2015-10-29 10:30:19.532906"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.537702"], ["updated_at", "2015-10-29 10:30:19.537702"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:30:19.539446"], ["updated_at", "2015-10-29 10:30:19.539446"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.541873"], ["updated_at", "2015-10-29 10:30:19.541873"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.543161"], ["updated_at", "2015-10-29 10:30:19.543161"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:30:19.544690"], ["updated_at", "2015-10-29 10:30:19.544690"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.545891"], ["updated_at", "2015-10-29 10:30:19.545891"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.548091"], ["updated_at", "2015-10-29 10:30:19.548091"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.550256"], ["updated_at", "2015-10-29 10:30:19.550256"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.554729"], ["updated_at", "2015-10-29 10:30:19.554729"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:30:19.558317"], ["updated_at", "2015-10-29 10:30:19.558317"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.562084"], ["updated_at", "2015-10-29 10:30:19.562084"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.564192"], ["updated_at", "2015-10-29 10:30:19.564192"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:30:19.565741"], ["updated_at", "2015-10-29 10:30:19.565741"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.566876"], ["updated_at", "2015-10-29 10:30:19.566876"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.568805"], ["updated_at", "2015-10-29 10:30:19.568805"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.573734"], ["updated_at", "2015-10-29 10:30:19.573734"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.579923"], ["updated_at", "2015-10-29 10:30:19.579923"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:30:19.581553"], ["updated_at", "2015-10-29 10:30:19.581553"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.583663"], ["updated_at", "2015-10-29 10:30:19.583663"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.584798"], ["updated_at", "2015-10-29 10:30:19.584798"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:30:19.586161"], ["updated_at", "2015-10-29 10:30:19.586161"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.587727"], ["updated_at", "2015-10-29 10:30:19.587727"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.589324"], ["updated_at", "2015-10-29 10:30:19.589324"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:30:19.591258"], ["updated_at", "2015-10-29 10:30:19.591258"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.597986"], ["updated_at", "2015-10-29 10:30:19.597986"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:30:19.599703"], ["updated_at", "2015-10-29 10:30:19.599703"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.602214"], ["updated_at", "2015-10-29 10:30:19.602214"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.603551"], ["updated_at", "2015-10-29 10:30:19.603551"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.608013"], ["updated_at", "2015-10-29 10:30:19.608013"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:30:19.609623"], ["updated_at", "2015-10-29 10:30:19.609623"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.612234"], ["updated_at", "2015-10-29 10:30:19.612234"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.615550"], ["updated_at", "2015-10-29 10:30:19.615550"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:30:19.618118"], ["updated_at", "2015-10-29 10:30:19.618118"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.619734"], ["updated_at", "2015-10-29 10:30:19.619734"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.621476"], ["updated_at", "2015-10-29 10:30:19.621476"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.629143"], ["updated_at", "2015-10-29 10:30:19.629143"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:30:19.632511"], ["updated_at", "2015-10-29 10:30:19.632511"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.635913"], ["updated_at", "2015-10-29 10:30:19.635913"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.637529"], ["updated_at", "2015-10-29 10:30:19.637529"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:30:19.639031"], ["updated_at", "2015-10-29 10:30:19.639031"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.640192"], ["updated_at", "2015-10-29 10:30:19.640192"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:30:19.641391"], ["updated_at", "2015-10-29 10:30:19.641391"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.645163"], ["updated_at", "2015-10-29 10:30:19.645163"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:30:19.646685"], ["updated_at", "2015-10-29 10:30:19.646685"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:30:19.648897"], ["updated_at", "2015-10-29 10:30:19.648897"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:30:19.650074"], ["updated_at", "2015-10-29 10:30:19.650074"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:30:19.651530"], ["updated_at", "2015-10-29 10:30:19.651530"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:30:19.652655"], ["updated_at", "2015-10-29 10:30:19.652655"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:30:19.654144"], ["updated_at", "2015-10-29 10:30:19.654144"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.7ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:31:13.068510"], ["updated_at", "2015-10-29 10:31:13.068510"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.085868"], ["updated_at", "2015-10-29 10:31:13.085868"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.5ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.113408"], ["updated_at", "2015-10-29 10:31:13.113408"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.124089"], ["updated_at", "2015-10-29 10:31:13.124089"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.127273"], ["updated_at", "2015-10-29 10:31:13.127273"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 22ms (Views: 13.0ms | ActiveRecord: 0.0ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:31:13.168536"], ["updated_at", "2015-10-29 10:31:13.168536"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.170789"], ["updated_at", "2015-10-29 10:31:13.170789"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.173180"], ["updated_at", "2015-10-29 10:31:13.173180"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.174509"], ["updated_at", "2015-10-29 10:31:13.174509"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.176270"], ["updated_at", "2015-10-29 10:31:13.176270"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#index as JSON [1m[35mNotifyWith::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/index.json.jbuilder (12.6ms) Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.4ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:31:13.198177"], ["updated_at", "2015-10-29 10:31:13.198177"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.200319"], ["updated_at", "2015-10-29 10:31:13.200319"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.205332"], ["updated_at", "2015-10-29 10:31:13.205332"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.207383"], ["updated_at", "2015-10-29 10:31:13.207383"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.209686"], ["updated_at", "2015-10-29 10:31:13.209686"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mNotifyWith::NotificationType Load (0.2ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/show.json.jbuilder (6.9ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.4ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:31:13.231317"], ["updated_at", "2015-10-29 10:31:13.231317"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.233566"], ["updated_at", "2015-10-29 10:31:13.233566"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.235980"], ["updated_at", "2015-10-29 10:31:13.235980"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.237283"], ["updated_at", "2015-10-29 10:31:13.237283"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.238892"], ["updated_at", "2015-10-29 10:31:13.238892"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyWith::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/notify_with/api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:31:13.251104"], ["updated_at", "2015-10-29 10:31:13.251104"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.253280"], ["updated_at", "2015-10-29 10:31:13.253280"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.255684"], ["updated_at", "2015-10-29 10:31:13.255684"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.256993"], ["updated_at", "2015-10-29 10:31:13.256993"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.258653"], ["updated_at", "2015-10-29 10:31:13.258653"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyWith::Api::NotificationsController#update_all as JSON [1m[36mNotifyWith::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.3ms) [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:31:13.430207"], ["updated_at", "2015-10-29 10:31:13.430207"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.432434"], ["updated_at", "2015-10-29 10:31:13.432434"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.434812"], ["updated_at", "2015-10-29 10:31:13.434812"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.436148"], ["updated_at", "2015-10-29 10:31:13.436148"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.437679"], ["updated_at", "2015-10-29 10:31:13.437679"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:31:13.444192"], ["updated_at", "2015-10-29 10:31:13.444192"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.446365"], ["updated_at", "2015-10-29 10:31:13.446365"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.448748"], ["updated_at", "2015-10-29 10:31:13.448748"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.450117"], ["updated_at", "2015-10-29 10:31:13.450117"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.451859"], ["updated_at", "2015-10-29 10:31:13.451859"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 19.6ms Sent mail to user7@sleede.com (7.9ms) Date: Thu, 29 Oct 2015 11:31:13 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f57174d0a_26ae3fdaa48601dc6063e@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:31:13.485423"], ["updated_at", "2015-10-29 10:31:13.485423"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.488100"], ["updated_at", "2015-10-29 10:31:13.488100"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.490252"], ["updated_at", "2015-10-29 10:31:13.490252"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.491602"], ["updated_at", "2015-10-29 10:31:13.491602"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.494125"], ["updated_at", "2015-10-29 10:31:13.494125"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.6ms Sent mail to user8@sleede.com (1.7ms) Date: Thu, 29 Oct 2015 11:31:13 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f5717a1fb_26ae3fdaa48601dc60710@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:31:13.509395"], ["updated_at", "2015-10-29 10:31:13.509395"]] [1m[36m (0.3ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.514254"], ["updated_at", "2015-10-29 10:31:13.514254"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.517662"], ["updated_at", "2015-10-29 10:31:13.517662"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.519075"], ["updated_at", "2015-10-29 10:31:13.519075"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.521025"], ["updated_at", "2015-10-29 10:31:13.521025"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:31:13 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f571800a9_26ae3fdaa48601dc60816@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:31:13.528432"], ["updated_at", "2015-10-29 10:31:13.528432"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.530460"], ["updated_at", "2015-10-29 10:31:13.530460"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.532798"], ["updated_at", "2015-10-29 10:31:13.532798"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.534004"], ["updated_at", "2015-10-29 10:31:13.534004"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.535441"], ["updated_at", "2015-10-29 10:31:13.535441"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 11:31:13 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f57183829_26ae3fdaa48601dc6094b@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.541871"], ["updated_at", "2015-10-29 10:31:13.541871"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:31:13.544798"], ["updated_at", "2015-10-29 10:31:13.544798"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.548850"], ["updated_at", "2015-10-29 10:31:13.548850"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.550652"], ["updated_at", "2015-10-29 10:31:13.550652"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:31:13.553682"], ["updated_at", "2015-10-29 10:31:13.553682"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.555281"], ["updated_at", "2015-10-29 10:31:13.555281"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.556810"], ["updated_at", "2015-10-29 10:31:13.556810"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.558608"], ["updated_at", "2015-10-29 10:31:13.558608"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.562031"], ["updated_at", "2015-10-29 10:31:13.562031"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:31:13.563500"], ["updated_at", "2015-10-29 10:31:13.563500"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.565851"], ["updated_at", "2015-10-29 10:31:13.565851"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.569739"], ["updated_at", "2015-10-29 10:31:13.569739"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:31:13.573126"], ["updated_at", "2015-10-29 10:31:13.573126"]] [1m[35m (0.2ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.575619"], ["updated_at", "2015-10-29 10:31:13.575619"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.578375"], ["updated_at", "2015-10-29 10:31:13.578375"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.580090"], ["updated_at", "2015-10-29 10:31:13.580090"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.583515"], ["updated_at", "2015-10-29 10:31:13.583515"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:31:13.585086"], ["updated_at", "2015-10-29 10:31:13.585086"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.587224"], ["updated_at", "2015-10-29 10:31:13.587224"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.588423"], ["updated_at", "2015-10-29 10:31:13.588423"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.590559"], ["updated_at", "2015-10-29 10:31:13.590559"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user15@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:31:13 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f57190fee_26ae3fdaa48601dc6105f@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.597580"], ["updated_at", "2015-10-29 10:31:13.597580"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:31:13.599287"], ["updated_at", "2015-10-29 10:31:13.599287"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.601602"], ["updated_at", "2015-10-29 10:31:13.601602"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.602879"], ["updated_at", "2015-10-29 10:31:13.602879"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.607563"], ["updated_at", "2015-10-29 10:31:13.607563"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c6014871-ed3f-44b1-841a-da239192b921) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [1m[35mNotifyWith::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/NotifyWith::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] NotificationsMailer#send_mail_by: processed outbound mail in 3.5ms [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] Sent mail to user16@sleede.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] Date: Thu, 29 Oct 2015 11:31:13 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f5719b13b_26ae3fdaa48601dc61169@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [c6014871-ed3f-44b1-841a-da239192b921] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.25ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.638477"], ["updated_at", "2015-10-29 10:31:13.638477"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:31:13.640176"], ["updated_at", "2015-10-29 10:31:13.640176"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.642500"], ["updated_at", "2015-10-29 10:31:13.642500"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.643738"], ["updated_at", "2015-10-29 10:31:13.643738"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.649503"], ["updated_at", "2015-10-29 10:31:13.649503"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:31:13.651168"], ["updated_at", "2015-10-29 10:31:13.651168"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.653406"], ["updated_at", "2015-10-29 10:31:13.653406"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.654668"], ["updated_at", "2015-10-29 10:31:13.654668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.658928"], ["updated_at", "2015-10-29 10:31:13.658928"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:31:13.660633"], ["updated_at", "2015-10-29 10:31:13.660633"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.663140"], ["updated_at", "2015-10-29 10:31:13.663140"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.664394"], ["updated_at", "2015-10-29 10:31:13.664394"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:31:13.665855"], ["updated_at", "2015-10-29 10:31:13.665855"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.667020"], ["updated_at", "2015-10-29 10:31:13.667020"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.668325"], ["updated_at", "2015-10-29 10:31:13.668325"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.670031"], ["updated_at", "2015-10-29 10:31:13.670031"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.675768"], ["updated_at", "2015-10-29 10:31:13.675768"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:31:13.678099"], ["updated_at", "2015-10-29 10:31:13.678099"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.681208"], ["updated_at", "2015-10-29 10:31:13.681208"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.682629"], ["updated_at", "2015-10-29 10:31:13.682629"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:31:13.687805"], ["updated_at", "2015-10-29 10:31:13.687805"]] [1m[36m (0.2ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.690856"], ["updated_at", "2015-10-29 10:31:13.690856"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.694339"], ["updated_at", "2015-10-29 10:31:13.694339"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.696456"], ["updated_at", "2015-10-29 10:31:13.696456"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.699518"], ["updated_at", "2015-10-29 10:31:13.699518"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:31:13.700986"], ["updated_at", "2015-10-29 10:31:13.700986"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.703222"], ["updated_at", "2015-10-29 10:31:13.703222"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.704468"], ["updated_at", "2015-10-29 10:31:13.704468"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:31:13.705929"], ["updated_at", "2015-10-29 10:31:13.705929"]] [1m[35m (0.0ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.707051"], ["updated_at", "2015-10-29 10:31:13.707051"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.708534"], ["updated_at", "2015-10-29 10:31:13.708534"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:31:13.710367"], ["updated_at", "2015-10-29 10:31:13.710367"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mNotifyWith::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.721877"], ["updated_at", "2015-10-29 10:31:13.721877"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:31:13.724182"], ["updated_at", "2015-10-29 10:31:13.724182"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.727581"], ["updated_at", "2015-10-29 10:31:13.727581"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.729522"], ["updated_at", "2015-10-29 10:31:13.729522"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.732754"], ["updated_at", "2015-10-29 10:31:13.732754"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.741035"], ["updated_at", "2015-10-29 10:31:13.741035"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:31:13.744431"], ["updated_at", "2015-10-29 10:31:13.744431"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.746729"], ["updated_at", "2015-10-29 10:31:13.746729"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.748258"], ["updated_at", "2015-10-29 10:31:13.748258"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:31:13.749830"], ["updated_at", "2015-10-29 10:31:13.749830"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.751018"], ["updated_at", "2015-10-29 10:31:13.751018"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.752339"], ["updated_at", "2015-10-29 10:31:13.752339"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.756187"], ["updated_at", "2015-10-29 10:31:13.756187"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:31:13.757672"], ["updated_at", "2015-10-29 10:31:13.757672"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.759843"], ["updated_at", "2015-10-29 10:31:13.759843"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.761037"], ["updated_at", "2015-10-29 10:31:13.761037"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:31:13.762453"], ["updated_at", "2015-10-29 10:31:13.762453"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.763548"], ["updated_at", "2015-10-29 10:31:13.763548"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:31:13.765005"], ["updated_at", "2015-10-29 10:31:13.765005"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mNotifyWith::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.768816"], ["updated_at", "2015-10-29 10:31:13.768816"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:31:13.770277"], ["updated_at", "2015-10-29 10:31:13.770277"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mNotifyWith::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:31:13.773296"], ["updated_at", "2015-10-29 10:31:13.773296"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:31:13.775972"], ["updated_at", "2015-10-29 10:31:13.775972"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:31:13.778659"], ["updated_at", "2015-10-29 10:31:13.778659"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:31:13.780614"], ["updated_at", "2015-10-29 10:31:13.780614"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:31:13.782233"], ["updated_at", "2015-10-29 10:31:13.782233"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyWith::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (0.9ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[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 ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 10:49:47.742140"], ["updated_at", "2015-10-29 10:49:47.742140"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:47.769629"], ["updated_at", "2015-10-29 10:49:47.769629"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.788211"], ["updated_at", "2015-10-29 10:49:47.788211"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:47.796031"], ["updated_at", "2015-10-29 10:49:47.796031"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:47.799583"], ["updated_at", "2015-10-29 10:49:47.799583"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/notify_with/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 21ms (Views: 11.8ms | ActiveRecord: 0.0ms) [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 10:49:47.841469"], ["updated_at", "2015-10-29 10:49:47.841469"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:47.843789"], ["updated_at", "2015-10-29 10:49:47.843789"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.846539"], ["updated_at", "2015-10-29 10:49:47.846539"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:47.847927"], ["updated_at", "2015-10-29 10:49:47.847927"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:47.849843"], ["updated_at", "2015-10-29 10:49:47.849843"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/wupee/api/notifications/index.json.jbuilder (13.9ms) Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.4ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 10:49:47.873407"], ["updated_at", "2015-10-29 10:49:47.873407"]] [1m[36m (0.3ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:47.878827"], ["updated_at", "2015-10-29 10:49:47.878827"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.883801"], ["updated_at", "2015-10-29 10:49:47.883801"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:47.885980"], ["updated_at", "2015-10-29 10:49:47.885980"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:47.888090"], ["updated_at", "2015-10-29 10:49:47.888090"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/wupee/api/notifications/show.json.jbuilder (2.7ms) Completed 200 OK in 11ms (Views: 4.8ms | ActiveRecord: 0.4ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 10:49:47.913303"], ["updated_at", "2015-10-29 10:49:47.913303"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:47.915597"], ["updated_at", "2015-10-29 10:49:47.915597"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.918127"], ["updated_at", "2015-10-29 10:49:47.918127"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:47.919430"], ["updated_at", "2015-10-29 10:49:47.919430"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:47.921052"], ["updated_at", "2015-10-29 10:49:47.921052"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/notify_with/app/views/wupee/api/notifications/show.json.jbuilder (2.2ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 10:49:47.933607"], ["updated_at", "2015-10-29 10:49:47.933607"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:47.935829"], ["updated_at", "2015-10-29 10:49:47.935829"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:47.938193"], ["updated_at", "2015-10-29 10:49:47.938193"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:47.939452"], ["updated_at", "2015-10-29 10:49:47.939452"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:47.940987"], ["updated_at", "2015-10-29 10:49:47.940987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 10:49:48.112341"], ["updated_at", "2015-10-29 10:49:48.112341"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.114837"], ["updated_at", "2015-10-29 10:49:48.114837"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.117207"], ["updated_at", "2015-10-29 10:49:48.117207"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.118605"], ["updated_at", "2015-10-29 10:49:48.118605"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.120164"], ["updated_at", "2015-10-29 10:49:48.120164"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 10:49:48.126506"], ["updated_at", "2015-10-29 10:49:48.126506"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.129003"], ["updated_at", "2015-10-29 10:49:48.129003"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.131556"], ["updated_at", "2015-10-29 10:49:48.131556"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.132825"], ["updated_at", "2015-10-29 10:49:48.132825"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.134395"], ["updated_at", "2015-10-29 10:49:48.134395"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.5ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.9ms Sent mail to user7@sleede.com (8.9ms) Date: Thu, 29 Oct 2015 11:49:48 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631f9cc27695_28253fffa58601d4562c2@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 10:49:48.169331"], ["updated_at", "2015-10-29 10:49:48.169331"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.171639"], ["updated_at", "2015-10-29 10:49:48.171639"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.174278"], ["updated_at", "2015-10-29 10:49:48.174278"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.178836"], ["updated_at", "2015-10-29 10:49:48.178836"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.185625"], ["updated_at", "2015-10-29 10:49:48.185625"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user8@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 11:49:48 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631f9cc2e67e_28253fffa58601d4563af@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 10:49:48.194095"], ["updated_at", "2015-10-29 10:49:48.194095"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.196406"], ["updated_at", "2015-10-29 10:49:48.196406"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.198856"], ["updated_at", "2015-10-29 10:49:48.198856"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.200830"], ["updated_at", "2015-10-29 10:49:48.200830"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.203136"], ["updated_at", "2015-10-29 10:49:48.203136"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:49:48 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631f9cc3268f_28253fffa58601d4564c9@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 10:49:48.210601"], ["updated_at", "2015-10-29 10:49:48.210601"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.212790"], ["updated_at", "2015-10-29 10:49:48.212790"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.215437"], ["updated_at", "2015-10-29 10:49:48.215437"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.218777"], ["updated_at", "2015-10-29 10:49:48.218777"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.221394"], ["updated_at", "2015-10-29 10:49:48.221394"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 11:49:48 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631f9cc3705c_28253fffa58601d456566@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.228834"], ["updated_at", "2015-10-29 10:49:48.228834"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 10:49:48.231128"], ["updated_at", "2015-10-29 10:49:48.231128"]] [1m[35m (0.5ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.241192"], ["updated_at", "2015-10-29 10:49:48.241192"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.243817"], ["updated_at", "2015-10-29 10:49:48.243817"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 10:49:48.245855"], ["updated_at", "2015-10-29 10:49:48.245855"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.247350"], ["updated_at", "2015-10-29 10:49:48.247350"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.248885"], ["updated_at", "2015-10-29 10:49:48.248885"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.250708"], ["updated_at", "2015-10-29 10:49:48.250708"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.254271"], ["updated_at", "2015-10-29 10:49:48.254271"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 10:49:48.256039"], ["updated_at", "2015-10-29 10:49:48.256039"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.258315"], ["updated_at", "2015-10-29 10:49:48.258315"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.259505"], ["updated_at", "2015-10-29 10:49:48.259505"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 10:49:48.260903"], ["updated_at", "2015-10-29 10:49:48.260903"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.262140"], ["updated_at", "2015-10-29 10:49:48.262140"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.264197"], ["updated_at", "2015-10-29 10:49:48.264197"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.266447"], ["updated_at", "2015-10-29 10:49:48.266447"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.269982"], ["updated_at", "2015-10-29 10:49:48.269982"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 10:49:48.273421"], ["updated_at", "2015-10-29 10:49:48.273421"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.277061"], ["updated_at", "2015-10-29 10:49:48.277061"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.279411"], ["updated_at", "2015-10-29 10:49:48.279411"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.284999"], ["updated_at", "2015-10-29 10:49:48.284999"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.4ms Sent mail to user15@sleede.com (1.6ms) Date: Thu, 29 Oct 2015 11:49:48 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631f9cc47c21_28253fffa58601d45667b@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.298150"], ["updated_at", "2015-10-29 10:49:48.298150"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 10:49:48.300118"], ["updated_at", "2015-10-29 10:49:48.300118"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.302627"], ["updated_at", "2015-10-29 10:49:48.302627"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.303896"], ["updated_at", "2015-10-29 10:49:48.303896"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.305816"], ["updated_at", "2015-10-29 10:49:48.305816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 58457bd5-2d6a-4cd1-ba69-1ca16b22e216) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] NotificationsMailer#send_mail_by: processed outbound mail in 4.2ms [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Sent mail to user16@sleede.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Date: Thu, 29 Oct 2015 11:49:48 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631f9cc50958_28253fffa58601d4567c2@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [58457bd5-2d6a-4cd1-ba69-1ca16b22e216] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.95ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.334603"], ["updated_at", "2015-10-29 10:49:48.334603"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 10:49:48.337190"], ["updated_at", "2015-10-29 10:49:48.337190"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.340720"], ["updated_at", "2015-10-29 10:49:48.340720"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.342313"], ["updated_at", "2015-10-29 10:49:48.342313"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.352319"], ["updated_at", "2015-10-29 10:49:48.352319"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 10:49:48.359001"], ["updated_at", "2015-10-29 10:49:48.359001"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.362523"], ["updated_at", "2015-10-29 10:49:48.362523"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.364160"], ["updated_at", "2015-10-29 10:49:48.364160"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.368566"], ["updated_at", "2015-10-29 10:49:48.368566"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 10:49:48.370253"], ["updated_at", "2015-10-29 10:49:48.370253"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.373009"], ["updated_at", "2015-10-29 10:49:48.373009"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.374384"], ["updated_at", "2015-10-29 10:49:48.374384"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 10:49:48.375945"], ["updated_at", "2015-10-29 10:49:48.375945"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.377197"], ["updated_at", "2015-10-29 10:49:48.377197"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.378869"], ["updated_at", "2015-10-29 10:49:48.378869"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.380806"], ["updated_at", "2015-10-29 10:49:48.380806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.386319"], ["updated_at", "2015-10-29 10:49:48.386319"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 10:49:48.389078"], ["updated_at", "2015-10-29 10:49:48.389078"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.392735"], ["updated_at", "2015-10-29 10:49:48.392735"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.394618"], ["updated_at", "2015-10-29 10:49:48.394618"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 10:49:48.396879"], ["updated_at", "2015-10-29 10:49:48.396879"]] [1m[36m (0.5ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.402404"], ["updated_at", "2015-10-29 10:49:48.402404"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.409127"], ["updated_at", "2015-10-29 10:49:48.409127"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.412276"], ["updated_at", "2015-10-29 10:49:48.412276"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.416075"], ["updated_at", "2015-10-29 10:49:48.416075"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 10:49:48.417786"], ["updated_at", "2015-10-29 10:49:48.417786"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.420195"], ["updated_at", "2015-10-29 10:49:48.420195"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.421482"], ["updated_at", "2015-10-29 10:49:48.421482"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 10:49:48.422977"], ["updated_at", "2015-10-29 10:49:48.422977"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.424149"], ["updated_at", "2015-10-29 10:49:48.424149"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.426694"], ["updated_at", "2015-10-29 10:49:48.426694"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 10:49:48.429086"], ["updated_at", "2015-10-29 10:49:48.429086"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.438401"], ["updated_at", "2015-10-29 10:49:48.438401"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 10:49:48.440028"], ["updated_at", "2015-10-29 10:49:48.440028"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.442232"], ["updated_at", "2015-10-29 10:49:48.442232"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.443436"], ["updated_at", "2015-10-29 10:49:48.443436"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.447080"], ["updated_at", "2015-10-29 10:49:48.447080"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.452455"], ["updated_at", "2015-10-29 10:49:48.452455"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 10:49:48.454453"], ["updated_at", "2015-10-29 10:49:48.454453"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.457463"], ["updated_at", "2015-10-29 10:49:48.457463"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.458785"], ["updated_at", "2015-10-29 10:49:48.458785"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 10:49:48.460853"], ["updated_at", "2015-10-29 10:49:48.460853"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.462587"], ["updated_at", "2015-10-29 10:49:48.462587"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.464589"], ["updated_at", "2015-10-29 10:49:48.464589"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.476674"], ["updated_at", "2015-10-29 10:49:48.476674"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 10:49:48.478384"], ["updated_at", "2015-10-29 10:49:48.478384"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.480762"], ["updated_at", "2015-10-29 10:49:48.480762"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.482057"], ["updated_at", "2015-10-29 10:49:48.482057"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 10:49:48.483566"], ["updated_at", "2015-10-29 10:49:48.483566"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.485161"], ["updated_at", "2015-10-29 10:49:48.485161"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 10:49:48.486596"], ["updated_at", "2015-10-29 10:49:48.486596"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.490565"], ["updated_at", "2015-10-29 10:49:48.490565"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 10:49:48.492272"], ["updated_at", "2015-10-29 10:49:48.492272"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 10:49:48.494677"], ["updated_at", "2015-10-29 10:49:48.494677"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 10:49:48.496351"], ["updated_at", "2015-10-29 10:49:48.496351"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 10:49:48.498660"], ["updated_at", "2015-10-29 10:49:48.498660"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 10:49:48.500568"], ["updated_at", "2015-10-29 10:49:48.500568"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 10:49:48.502163"], ["updated_at", "2015-10-29 10:49:48.502163"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[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[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE TABLE "notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m [1m[35m (1.1ms)[0m CREATE INDEX "index_notification_type_configurations_on_notification_type_id" ON "notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_notification_type_configurations_on_notification_type_id' AND type='index' [0m [1m[35m (0.9ms)[0m CREATE INDEX "idx_notif_typ_config_on_receiver_type_and_receiver_id" ON "notification_type_configurations" ("receiver_type", "receiver_id") [1m[36m (0.8ms)[0m [1mCREATE TABLE "notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_notification_types_on_name" ON "notification_types" ("name") [1m[36m (0.9ms)[0m [1mCREATE TABLE "notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028111239') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151028110352')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151028110353') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 11:11:34.287272"], ["updated_at", "2015-10-29 11:11:34.287272"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.303082"], ["updated_at", "2015-10-29 11:11:34.303082"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.325216"], ["updated_at", "2015-10-29 11:11:34.325216"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.334984"], ["updated_at", "2015-10-29 11:11:34.334984"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.338119"], ["updated_at", "2015-10-29 11:11:34.338119"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 22ms (Views: 12.1ms | ActiveRecord: 0.0ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:11:34.381394"], ["updated_at", "2015-10-29 11:11:34.381394"]] [1m[36m (0.3ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.388176"], ["updated_at", "2015-10-29 11:11:34.388176"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.391635"], ["updated_at", "2015-10-29 11:11:34.391635"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.393289"], ["updated_at", "2015-10-29 11:11:34.393289"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.394979"], ["updated_at", "2015-10-29 11:11:34.394979"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (12.5ms) Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 11:11:34.416676"], ["updated_at", "2015-10-29 11:11:34.416676"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.419648"], ["updated_at", "2015-10-29 11:11:34.419648"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.422569"], ["updated_at", "2015-10-29 11:11:34.422569"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.424019"], ["updated_at", "2015-10-29 11:11:34.424019"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.426221"], ["updated_at", "2015-10-29 11:11:34.426221"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 11:11:34.440257"], ["updated_at", "2015-10-29 11:11:34.440257"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.442671"], ["updated_at", "2015-10-29 11:11:34.442671"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.445122"], ["updated_at", "2015-10-29 11:11:34.445122"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.446442"], ["updated_at", "2015-10-29 11:11:34.446442"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.448042"], ["updated_at", "2015-10-29 11:11:34.448042"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.3ms) Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms) [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 11:11:34.463219"], ["updated_at", "2015-10-29 11:11:34.463219"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.465518"], ["updated_at", "2015-10-29 11:11:34.465518"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.468012"], ["updated_at", "2015-10-29 11:11:34.468012"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.469482"], ["updated_at", "2015-10-29 11:11:34.469482"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.471765"], ["updated_at", "2015-10-29 11:11:34.471765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? AND "notifications"."is_read" = ? ORDER BY "notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 11:11:34.630576"], ["updated_at", "2015-10-29 11:11:34.630576"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.632807"], ["updated_at", "2015-10-29 11:11:34.632807"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.635280"], ["updated_at", "2015-10-29 11:11:34.635280"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.636683"], ["updated_at", "2015-10-29 11:11:34.636683"]] [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 [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.638504"], ["updated_at", "2015-10-29 11:11:34.638504"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 11:11:34.644304"], ["updated_at", "2015-10-29 11:11:34.644304"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.646723"], ["updated_at", "2015-10-29 11:11:34.646723"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.649344"], ["updated_at", "2015-10-29 11:11:34.649344"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.650997"], ["updated_at", "2015-10-29 11:11:34.650997"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.653215"], ["updated_at", "2015-10-29 11:11:34.653215"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 18.2ms Sent mail to user7@sleede.com (7.0ms) Date: Thu, 29 Oct 2015 12:11:34 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5631fee6a595d_2a1b3fcb95c5e1d06077a@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 11:11:34.684292"], ["updated_at", "2015-10-29 11:11:34.684292"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.686847"], ["updated_at", "2015-10-29 11:11:34.686847"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.689397"], ["updated_at", "2015-10-29 11:11:34.689397"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.691204"], ["updated_at", "2015-10-29 11:11:34.691204"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.694816"], ["updated_at", "2015-10-29 11:11:34.694816"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.6ms Sent mail to user8@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 12:11:34 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5631fee6aab2b_2a1b3fcb95c5e1d0608b5@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 11:11:34.702901"], ["updated_at", "2015-10-29 11:11:34.702901"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.705303"], ["updated_at", "2015-10-29 11:11:34.705303"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.707741"], ["updated_at", "2015-10-29 11:11:34.707741"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.709096"], ["updated_at", "2015-10-29 11:11:34.709096"]] [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 INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.710973"], ["updated_at", "2015-10-29 11:11:34.710973"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 12:11:34 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5631fee6ae680_2a1b3fcb95c5e1d0609b0@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[36m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 11:11:34.718203"], ["updated_at", "2015-10-29 11:11:34.718203"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.720289"], ["updated_at", "2015-10-29 11:11:34.720289"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.723327"], ["updated_at", "2015-10-29 11:11:34.723327"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.724917"], ["updated_at", "2015-10-29 11:11:34.724917"]] [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 "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.726758"], ["updated_at", "2015-10-29 11:11:34.726758"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 12:11:34 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5631fee6b2348_2a1b3fcb95c5e1d0610b5@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.733161"], ["updated_at", "2015-10-29 11:11:34.733161"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 11:11:34.734834"], ["updated_at", "2015-10-29 11:11:34.734834"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.737553"], ["updated_at", "2015-10-29 11:11:34.737553"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.738982"], ["updated_at", "2015-10-29 11:11:34.738982"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 11:11:34.740541"], ["updated_at", "2015-10-29 11:11:34.740541"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.741915"], ["updated_at", "2015-10-29 11:11:34.741915"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.743438"], ["updated_at", "2015-10-29 11:11:34.743438"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.745236"], ["updated_at", "2015-10-29 11:11:34.745236"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_read" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.748448"], ["updated_at", "2015-10-29 11:11:34.748448"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 11:11:34.750086"], ["updated_at", "2015-10-29 11:11:34.750086"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.752282"], ["updated_at", "2015-10-29 11:11:34.752282"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.753473"], ["updated_at", "2015-10-29 11:11:34.753473"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 11:11:34.754890"], ["updated_at", "2015-10-29 11:11:34.754890"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.756465"], ["updated_at", "2015-10-29 11:11:34.756465"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.758403"], ["updated_at", "2015-10-29 11:11:34.758403"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.760527"], ["updated_at", "2015-10-29 11:11:34.760527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.763851"], ["updated_at", "2015-10-29 11:11:34.763851"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 11:11:34.765406"], ["updated_at", "2015-10-29 11:11:34.765406"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.767561"], ["updated_at", "2015-10-29 11:11:34.767561"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.768746"], ["updated_at", "2015-10-29 11:11:34.768746"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.771130"], ["updated_at", "2015-10-29 11:11:34.771130"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.7ms Sent mail to user15@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 12:11:34 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <5631fee6bd22c_2a1b3fcb95c5e1d0611d@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.778645"], ["updated_at", "2015-10-29 11:11:34.778645"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 11:11:34.780303"], ["updated_at", "2015-10-29 11:11:34.780303"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.782565"], ["updated_at", "2015-10-29 11:11:34.782565"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.783778"], ["updated_at", "2015-10-29 11:11:34.783778"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.786202"], ["updated_at", "2015-10-29 11:11:34.786202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 115bd7c6-3048-481f-998e-2c0a783af697) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "notifications".* FROM "notifications" WHERE "notifications"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] [1m[35mSQL (0.1ms)[0m UPDATE "notifications" SET "is_sent" = 't' WHERE "notifications"."id" = ? [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] NotificationsMailer#send_mail_by: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Sent mail to user16@sleede.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Date: Thu, 29 Oct 2015 12:11:34 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <5631fee6c5fa6_2a1b3fcb95c5e1d061240@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [115bd7c6-3048-481f-998e-2c0a783af697] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.9ms [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.814823"], ["updated_at", "2015-10-29 11:11:34.814823"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 11:11:34.816603"], ["updated_at", "2015-10-29 11:11:34.816603"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.819016"], ["updated_at", "2015-10-29 11:11:34.819016"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.820382"], ["updated_at", "2015-10-29 11:11:34.820382"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.826580"], ["updated_at", "2015-10-29 11:11:34.826580"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 11:11:34.828347"], ["updated_at", "2015-10-29 11:11:34.828347"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.830692"], ["updated_at", "2015-10-29 11:11:34.830692"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.831911"], ["updated_at", "2015-10-29 11:11:34.831911"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.836887"], ["updated_at", "2015-10-29 11:11:34.836887"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 11:11:34.838473"], ["updated_at", "2015-10-29 11:11:34.838473"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.840537"], ["updated_at", "2015-10-29 11:11:34.840537"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.841639"], ["updated_at", "2015-10-29 11:11:34.841639"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 11:11:34.843096"], ["updated_at", "2015-10-29 11:11:34.843096"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.846097"], ["updated_at", "2015-10-29 11:11:34.846097"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.847832"], ["updated_at", "2015-10-29 11:11:34.847832"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.849976"], ["updated_at", "2015-10-29 11:11:34.849976"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.854692"], ["updated_at", "2015-10-29 11:11:34.854692"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 11:11:34.856742"], ["updated_at", "2015-10-29 11:11:34.856742"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.859445"], ["updated_at", "2015-10-29 11:11:34.859445"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.860709"], ["updated_at", "2015-10-29 11:11:34.860709"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 11:11:34.862125"], ["updated_at", "2015-10-29 11:11:34.862125"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.863345"], ["updated_at", "2015-10-29 11:11:34.863345"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.864875"], ["updated_at", "2015-10-29 11:11:34.864875"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.866696"], ["updated_at", "2015-10-29 11:11:34.866696"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.870097"], ["updated_at", "2015-10-29 11:11:34.870097"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 11:11:34.871925"], ["updated_at", "2015-10-29 11:11:34.871925"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.874268"], ["updated_at", "2015-10-29 11:11:34.874268"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.875549"], ["updated_at", "2015-10-29 11:11:34.875549"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 11:11:34.877050"], ["updated_at", "2015-10-29 11:11:34.877050"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.878235"], ["updated_at", "2015-10-29 11:11:34.878235"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.880160"], ["updated_at", "2015-10-29 11:11:34.880160"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 11:11:34.882614"], ["updated_at", "2015-10-29 11:11:34.882614"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 2]] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "notifications".* FROM "notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message')[0m [1m[35mSQL (0.1ms)[0m DELETE FROM "notifications" WHERE "notifications"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ? [["receiver_id", 2], ["receiver_type", "User"]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.891978"], ["updated_at", "2015-10-29 11:11:34.891978"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 11:11:34.893922"], ["updated_at", "2015-10-29 11:11:34.893922"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.896367"], ["updated_at", "2015-10-29 11:11:34.896367"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.897772"], ["updated_at", "2015-10-29 11:11:34.897772"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.900603"], ["updated_at", "2015-10-29 11:11:34.900603"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = ? AND "notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.904497"], ["updated_at", "2015-10-29 11:11:34.904497"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 11:11:34.906241"], ["updated_at", "2015-10-29 11:11:34.906241"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.908577"], ["updated_at", "2015-10-29 11:11:34.908577"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.909816"], ["updated_at", "2015-10-29 11:11:34.909816"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 11:11:34.911323"], ["updated_at", "2015-10-29 11:11:34.911323"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.912448"], ["updated_at", "2015-10-29 11:11:34.912448"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.913947"], ["updated_at", "2015-10-29 11:11:34.913947"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.917598"], ["updated_at", "2015-10-29 11:11:34.917598"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 11:11:34.919141"], ["updated_at", "2015-10-29 11:11:34.919141"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.921396"], ["updated_at", "2015-10-29 11:11:34.921396"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.922966"], ["updated_at", "2015-10-29 11:11:34.922966"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 11:11:34.924797"], ["updated_at", "2015-10-29 11:11:34.924797"]] [1m[35m (0.1ms)[0m SELECT "notification_types"."id" FROM "notification_types" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.926136"], ["updated_at", "2015-10-29 11:11:34.926136"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 11:11:34.927801"], ["updated_at", "2015-10-29 11:11:34.927801"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.931912"], ["updated_at", "2015-10-29 11:11:34.931912"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 11:11:34.933458"], ["updated_at", "2015-10-29 11:11:34.933458"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "notification_types" WHERE "notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:11:34.935623"], ["updated_at", "2015-10-29 11:11:34.935623"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:11:34.936815"], ["updated_at", "2015-10-29 11:11:34.936815"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 11:11:34.938562"], ["updated_at", "2015-10-29 11:11:34.938562"]] [1m[36m (0.1ms)[0m [1mSELECT "notification_types"."id" FROM "notification_types"[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 11:11:34.939867"], ["updated_at", "2015-10-29 11:11:34.939867"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 11:11:34.941510"], ["updated_at", "2015-10-29 11:11:34.941510"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "notification_types".* FROM "notification_types" WHERE "notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (1.9ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m [1m[35m (1.3ms)[0m CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029113659') [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029113657')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029113658') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]] [1m[35m (1.6ms)[0m commit transaction Migrating to CreateMessages (20150213152846) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (1.2ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]] [1m[35m (0.8ms)[0m commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101) [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.7ms)[0m CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.3ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]] [1m[36m (1.5ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotifications (20151029113107) [1m[35m (0.1ms)[0m begin transaction [1m[36m (1.9ms)[0m [1mCREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]] [1m[36m (0.9ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotificationTypes (20151029113122) [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.5ms)[0m [1mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113122"]] [1m[35m (1.1ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.6ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' [1m[36m (0.2ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_wupee_notification_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_wupee_notification_types_on_name' AND type='index' [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 11:53:21.226904"], ["updated_at", "2015-10-29 11:53:21.226904"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:21.253215"], ["updated_at", "2015-10-29 11:53:21.253215"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:53:21.280265"], ["updated_at", "2015-10-29 11:53:21.280265"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:53:21.296075"], ["updated_at", "2015-10-29 11:53:21.296075"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:21.298941"], ["updated_at", "2015-10-29 11:53:21.298941"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:53:21.301743"], ["updated_at", "2015-10-29 11:53:21.301743"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 11:53:21.306857"], ["updated_at", "2015-10-29 11:53:21.306857"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:21.309759"], ["updated_at", "2015-10-29 11:53:21.309759"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:53:21.312634"], ["updated_at", "2015-10-29 11:53:21.312634"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 11:53:55.633207"], ["updated_at", "2015-10-29 11:53:55.633207"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:55.657168"], ["updated_at", "2015-10-29 11:53:55.657168"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:53:55.676789"], ["updated_at", "2015-10-29 11:53:55.676789"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:53:55.699323"], ["updated_at", "2015-10-29 11:53:55.699323"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:55.701687"], ["updated_at", "2015-10-29 11:53:55.701687"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:53:55.704686"], ["updated_at", "2015-10-29 11:53:55.704686"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 11:53:55.709254"], ["updated_at", "2015-10-29 11:53:55.709254"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:53:55.711826"], ["updated_at", "2015-10-29 11:53:55.711826"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:53:55.714544"], ["updated_at", "2015-10-29 11:53:55.714544"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 11:54:28.301835"], ["updated_at", "2015-10-29 11:54:28.301835"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:54:28.320689"], ["updated_at", "2015-10-29 11:54:28.320689"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:54:28.338981"], ["updated_at", "2015-10-29 11:54:28.338981"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (9.4ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:54:28.361450"], ["updated_at", "2015-10-29 11:54:28.361450"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:54:28.364186"], ["updated_at", "2015-10-29 11:54:28.364186"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:54:28.366713"], ["updated_at", "2015-10-29 11:54:28.366713"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 11:54:28.371477"], ["updated_at", "2015-10-29 11:54:28.371477"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:54:28.374175"], ["updated_at", "2015-10-29 11:54:28.374175"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:54:28.376778"], ["updated_at", "2015-10-29 11:54:28.376778"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 11:56:14.841766"], ["updated_at", "2015-10-29 11:56:14.841766"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:14.864262"], ["updated_at", "2015-10-29 11:56:14.864262"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:56:14.885088"], ["updated_at", "2015-10-29 11:56:14.885088"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (8.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:56:14.911497"], ["updated_at", "2015-10-29 11:56:14.911497"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:14.914902"], ["updated_at", "2015-10-29 11:56:14.914902"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:56:14.918219"], ["updated_at", "2015-10-29 11:56:14.918219"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 11:56:14.923365"], ["updated_at", "2015-10-29 11:56:14.923365"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:14.928011"], ["updated_at", "2015-10-29 11:56:14.928011"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:56:14.930893"], ["updated_at", "2015-10-29 11:56:14.930893"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (7.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 11:56:39.291541"], ["updated_at", "2015-10-29 11:56:39.291541"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:39.312065"], ["updated_at", "2015-10-29 11:56:39.312065"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:56:39.329268"], ["updated_at", "2015-10-29 11:56:39.329268"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 11:56:39.340719"], ["updated_at", "2015-10-29 11:56:39.340719"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:39.345966"], ["updated_at", "2015-10-29 11:56:39.345966"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:56:39.353781"], ["updated_at", "2015-10-29 11:56:39.353781"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 11:56:39.358892"], ["updated_at", "2015-10-29 11:56:39.358892"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 11:56:39.361667"], ["updated_at", "2015-10-29 11:56:39.361667"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 11:56:39.364194"], ["updated_at", "2015-10-29 11:56:39.364194"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 13:12:28.273540"], ["updated_at", "2015-10-29 13:12:28.273540"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.298744"], ["updated_at", "2015-10-29 13:12:28.298744"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.4ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.334975"], ["updated_at", "2015-10-29 13:12:28.334975"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.350079"], ["updated_at", "2015-10-29 13:12:28.350079"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.353399"], ["updated_at", "2015-10-29 13:12:28.353399"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 19ms (Views: 11.1ms | ActiveRecord: 0.0ms) [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.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 13:12:28.392050"], ["updated_at", "2015-10-29 13:12:28.392050"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:28.401818"], ["updated_at", "2015-10-29 13:12:28.401818"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (1.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.410099"], ["updated_at", "2015-10-29 13:12:28.410099"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.417140"], ["updated_at", "2015-10-29 13:12:28.417140"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.420849"], ["updated_at", "2015-10-29 13:12:28.420849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (1.2ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (17.7ms) Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 13:12:28.452079"], ["updated_at", "2015-10-29 13:12:28.452079"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:28.458353"], ["updated_at", "2015-10-29 13:12:28.458353"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.465210"], ["updated_at", "2015-10-29 13:12:28.465210"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.468282"], ["updated_at", "2015-10-29 13:12:28.468282"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.472922"], ["updated_at", "2015-10-29 13:12:28.472922"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (4.2ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 0.5ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 13:12:28.499523"], ["updated_at", "2015-10-29 13:12:28.499523"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:28.509416"], ["updated_at", "2015-10-29 13:12:28.509416"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.517674"], ["updated_at", "2015-10-29 13:12:28.517674"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.525320"], ["updated_at", "2015-10-29 13:12:28.525320"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.532768"], ["updated_at", "2015-10-29 13:12:28.532768"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.1ms) Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.5ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 13:12:28.551256"], ["updated_at", "2015-10-29 13:12:28.551256"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.567575"], ["updated_at", "2015-10-29 13:12:28.567575"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.584064"], ["updated_at", "2015-10-29 13:12:28.584064"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.594690"], ["updated_at", "2015-10-29 13:12:28.594690"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.597125"], ["updated_at", "2015-10-29 13:12:28.597125"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.5ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 13:12:28.781232"], ["updated_at", "2015-10-29 13:12:28.781232"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:28.783932"], ["updated_at", "2015-10-29 13:12:28.783932"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.786435"], ["updated_at", "2015-10-29 13:12:28.786435"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.795252"], ["updated_at", "2015-10-29 13:12:28.795252"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.798324"], ["updated_at", "2015-10-29 13:12:28.798324"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 13:12:28.806735"], ["updated_at", "2015-10-29 13:12:28.806735"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:28.809606"], ["updated_at", "2015-10-29 13:12:28.809606"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.812234"], ["updated_at", "2015-10-29 13:12:28.812234"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.814872"], ["updated_at", "2015-10-29 13:12:28.814872"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.816767"], ["updated_at", "2015-10-29 13:12:28.816767"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 26.5ms Sent mail to user7@sleede.com (9.9ms) Date: Thu, 29 Oct 2015 14:12:28 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56321b3ccfaf5_306a3ff089c601d885799@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 13:12:28.867623"], ["updated_at", "2015-10-29 13:12:28.867623"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:28.876206"], ["updated_at", "2015-10-29 13:12:28.876206"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.878831"], ["updated_at", "2015-10-29 13:12:28.878831"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.887144"], ["updated_at", "2015-10-29 13:12:28.887144"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.891136"], ["updated_at", "2015-10-29 13:12:28.891136"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (1.2ms) Date: Thu, 29 Oct 2015 14:12:28 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56321b3cda763_306a3ff089c601d8858e0@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 13:12:28.899929"], ["updated_at", "2015-10-29 13:12:28.899929"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:28.907328"], ["updated_at", "2015-10-29 13:12:28.907328"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.920774"], ["updated_at", "2015-10-29 13:12:28.920774"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.924581"], ["updated_at", "2015-10-29 13:12:28.924581"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.933001"], ["updated_at", "2015-10-29 13:12:28.933001"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 4.3ms Sent mail to user9@sleede.com (6.9ms) Date: Thu, 29 Oct 2015 14:12:28 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56321b3ce5ffe_306a3ff089c601d8859ab@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 13:12:28.956301"], ["updated_at", "2015-10-29 13:12:28.956301"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:28.965581"], ["updated_at", "2015-10-29 13:12:28.965581"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:28.974850"], ["updated_at", "2015-10-29 13:12:28.974850"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:28.983242"], ["updated_at", "2015-10-29 13:12:28.983242"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:28.985140"], ["updated_at", "2015-10-29 13:12:28.985140"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.2ms Sent mail to user10@sleede.com (3.1ms) Date: Thu, 29 Oct 2015 14:12:28 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56321b3cf345d_306a3ff089c601d88604@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.002462"], ["updated_at", "2015-10-29 13:12:29.002462"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 13:12:29.040482"], ["updated_at", "2015-10-29 13:12:29.040482"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.048038"], ["updated_at", "2015-10-29 13:12:29.048038"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.054416"], ["updated_at", "2015-10-29 13:12:29.054416"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 13:12:29.057038"], ["updated_at", "2015-10-29 13:12:29.057038"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.060676"], ["updated_at", "2015-10-29 13:12:29.060676"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.062332"], ["updated_at", "2015-10-29 13:12:29.062332"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:29.064114"], ["updated_at", "2015-10-29 13:12:29.064114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.067685"], ["updated_at", "2015-10-29 13:12:29.067685"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 13:12:29.072378"], ["updated_at", "2015-10-29 13:12:29.072378"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.086463"], ["updated_at", "2015-10-29 13:12:29.086463"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.093237"], ["updated_at", "2015-10-29 13:12:29.093237"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 13:12:29.097578"], ["updated_at", "2015-10-29 13:12:29.097578"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.101312"], ["updated_at", "2015-10-29 13:12:29.101312"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.105461"], ["updated_at", "2015-10-29 13:12:29.105461"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:29.109203"], ["updated_at", "2015-10-29 13:12:29.109203"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.117416"], ["updated_at", "2015-10-29 13:12:29.117416"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 13:12:29.119878"], ["updated_at", "2015-10-29 13:12:29.119878"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.126239"], ["updated_at", "2015-10-29 13:12:29.126239"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.132396"], ["updated_at", "2015-10-29 13:12:29.132396"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.136871"], ["updated_at", "2015-10-29 13:12:29.136871"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 6.6ms Sent mail to user15@sleede.com (4.6ms) Date: Thu, 29 Oct 2015 14:12:29 +0100 From: contact@sleede.com To: user15@sleede.com Message-ID: <56321b3d24e49_306a3ff089c601d8861dd@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser15
message body
[1m[35m (2.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.160166"], ["updated_at", "2015-10-29 13:12:29.160166"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 13:12:29.161918"], ["updated_at", "2015-10-29 13:12:29.161918"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.165693"], ["updated_at", "2015-10-29 13:12:29.165693"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.175325"], ["updated_at", "2015-10-29 13:12:29.175325"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.183712"], ["updated_at", "2015-10-29 13:12:29.183712"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7b6a71fb-0b6e-410a-a653-69d6d5d163ca) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] NotificationsMailer#send_mail_by: processed outbound mail in 3.6ms [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Sent mail to user16@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Date: Thu, 29 Oct 2015 14:12:29 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <56321b3d36c43_306a3ff089c601d88621c@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[ActiveJob] [ActionMailer::DeliveryJob] [7b6a71fb-0b6e-410a-a653-69d6d5d163ca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.63ms [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.228096"], ["updated_at", "2015-10-29 13:12:29.228096"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 13:12:29.230213"], ["updated_at", "2015-10-29 13:12:29.230213"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.234925"], ["updated_at", "2015-10-29 13:12:29.234925"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.241202"], ["updated_at", "2015-10-29 13:12:29.241202"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.251704"], ["updated_at", "2015-10-29 13:12:29.251704"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 13:12:29.256451"], ["updated_at", "2015-10-29 13:12:29.256451"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.259566"], ["updated_at", "2015-10-29 13:12:29.259566"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.266941"], ["updated_at", "2015-10-29 13:12:29.266941"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.275344"], ["updated_at", "2015-10-29 13:12:29.275344"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 13:12:29.279178"], ["updated_at", "2015-10-29 13:12:29.279178"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.282083"], ["updated_at", "2015-10-29 13:12:29.282083"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.284762"], ["updated_at", "2015-10-29 13:12:29.284762"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 13:12:29.289567"], ["updated_at", "2015-10-29 13:12:29.289567"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.301539"], ["updated_at", "2015-10-29 13:12:29.301539"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.307341"], ["updated_at", "2015-10-29 13:12:29.307341"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:29.309932"], ["updated_at", "2015-10-29 13:12:29.309932"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.314357"], ["updated_at", "2015-10-29 13:12:29.314357"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 13:12:29.316382"], ["updated_at", "2015-10-29 13:12:29.316382"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.319338"], ["updated_at", "2015-10-29 13:12:29.319338"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.326555"], ["updated_at", "2015-10-29 13:12:29.326555"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 13:12:29.331191"], ["updated_at", "2015-10-29 13:12:29.331191"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.335433"], ["updated_at", "2015-10-29 13:12:29.335433"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.338129"], ["updated_at", "2015-10-29 13:12:29.338129"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:29.341619"], ["updated_at", "2015-10-29 13:12:29.341619"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.345379"], ["updated_at", "2015-10-29 13:12:29.345379"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 13:12:29.347331"], ["updated_at", "2015-10-29 13:12:29.347331"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.349882"], ["updated_at", "2015-10-29 13:12:29.349882"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.355603"], ["updated_at", "2015-10-29 13:12:29.355603"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 13:12:29.363283"], ["updated_at", "2015-10-29 13:12:29.363283"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.370940"], ["updated_at", "2015-10-29 13:12:29.370940"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.372576"], ["updated_at", "2015-10-29 13:12:29.372576"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 13:12:29.374607"], ["updated_at", "2015-10-29 13:12:29.374607"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE (attached_object_id = 2 and attached_object_type = 'Message') [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.386575"], ["updated_at", "2015-10-29 13:12:29.386575"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 13:12:29.388202"], ["updated_at", "2015-10-29 13:12:29.388202"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.392959"], ["updated_at", "2015-10-29 13:12:29.392959"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.400612"], ["updated_at", "2015-10-29 13:12:29.400612"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.409269"], ["updated_at", "2015-10-29 13:12:29.409269"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.426472"], ["updated_at", "2015-10-29 13:12:29.426472"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 13:12:29.428909"], ["updated_at", "2015-10-29 13:12:29.428909"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.434303"], ["updated_at", "2015-10-29 13:12:29.434303"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.446379"], ["updated_at", "2015-10-29 13:12:29.446379"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 13:12:29.450908"], ["updated_at", "2015-10-29 13:12:29.450908"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.456019"], ["updated_at", "2015-10-29 13:12:29.456019"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.460669"], ["updated_at", "2015-10-29 13:12:29.460669"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.466060"], ["updated_at", "2015-10-29 13:12:29.466060"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 13:12:29.467971"], ["updated_at", "2015-10-29 13:12:29.467971"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.486988"], ["updated_at", "2015-10-29 13:12:29.486988"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.498269"], ["updated_at", "2015-10-29 13:12:29.498269"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 13:12:29.500653"], ["updated_at", "2015-10-29 13:12:29.500653"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.503473"], ["updated_at", "2015-10-29 13:12:29.503473"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 13:12:29.504941"], ["updated_at", "2015-10-29 13:12:29.504941"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.514637"], ["updated_at", "2015-10-29 13:12:29.514637"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 13:12:29.518540"], ["updated_at", "2015-10-29 13:12:29.518540"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.528861"], ["updated_at", "2015-10-29 13:12:29.528861"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.533154"], ["updated_at", "2015-10-29 13:12:29.533154"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 13:12:29.539332"], ["updated_at", "2015-10-29 13:12:29.539332"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 13:12:29.551265"], ["updated_at", "2015-10-29 13:12:29.551265"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 13:12:29.555208"], ["updated_at", "2015-10-29 13:12:29.555208"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 13:12:29.567407"], ["updated_at", "2015-10-29 13:12:29.567407"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.572833"], ["updated_at", "2015-10-29 13:12:29.572833"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.582255"], ["updated_at", "2015-10-29 13:12:29.582255"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [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.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-29 13:12:29.588088"], ["updated_at", "2015-10-29 13:12:29.588088"]] [1m[35m (0.6ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.598605"], ["updated_at", "2015-10-29 13:12:29.598605"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (1.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.605239"], ["updated_at", "2015-10-29 13:12:29.605239"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 13:12:29.619506"], ["updated_at", "2015-10-29 13:12:29.619506"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 13:12:29.629251"], ["updated_at", "2015-10-29 13:12:29.629251"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 13:12:29.635840"], ["updated_at", "2015-10-29 13:12:29.635840"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.0ms)[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[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.5ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (7.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.1ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.2ms)[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.5ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:03:24.118368"], ["updated_at", "2015-10-29 14:03:24.118368"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.5ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "users" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:03:46.256136"], ["updated_at", "2015-10-29 14:03:46.256136"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:04:26.093535"], ["updated_at", "2015-10-29 14:04:26.093535"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m [1m[35m (8.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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 [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:04:42.762937"], ["updated_at", "2015-10-29 14:04:42.762937"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" [1m[36m (8.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (7.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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 [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:05:26.474317"], ["updated_at", "2015-10-29 14:05:26.474317"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:05:26.489340"], ["updated_at", "2015-10-29 14:05:26.489340"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:05:26.521974"], ["updated_at", "2015-10-29 14:05:26.521974"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.1ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:05:47.536756"], ["updated_at", "2015-10-29 14:05:47.536756"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:05:47.545262"], ["updated_at", "2015-10-29 14:05:47.545262"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:05:47.579053"], ["updated_at", "2015-10-29 14:05:47.579053"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:06:08.712211"], ["updated_at", "2015-10-29 14:06:08.712211"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:06:08.720946"], ["updated_at", "2015-10-29 14:06:08.720946"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.5ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:06:08.755942"], ["updated_at", "2015-10-29 14:06:08.755942"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (8.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:06:57.286564"], ["updated_at", "2015-10-29 14:06:57.286564"]] [1m[36m (0.5ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (12.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:06:57.296070"], ["updated_at", "2015-10-29 14:06:57.296070"]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:06:57.337980"], ["updated_at", "2015-10-29 14:06:57.337980"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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 [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:07:10.807513"], ["updated_at", "2015-10-29 14:07:10.807513"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:07:10.815309"], ["updated_at", "2015-10-29 14:07:10.815309"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:07:10.843517"], ["updated_at", "2015-10-29 14:07:10.843517"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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 [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:07:43.259790"], ["updated_at", "2015-10-29 14:07:43.259790"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:07:43.269072"], ["updated_at", "2015-10-29 14:07:43.269072"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:07:43.301448"], ["updated_at", "2015-10-29 14:07:43.301448"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (8.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (5.0ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:11:25.296497"], ["updated_at", "2015-10-29 14:11:25.296497"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:11:25.322202"], ["updated_at", "2015-10-29 14:11:25.322202"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:11:25.353596"], ["updated_at", "2015-10-29 14:11:25.353596"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[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.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:12:12.673821"], ["updated_at", "2015-10-29 14:12:12.673821"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:12:12.682919"], ["updated_at", "2015-10-29 14:12:12.682919"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:12:12.720276"], ["updated_at", "2015-10-29 14:12:12.720276"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (8.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (8.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:12:54.867077"], ["updated_at", "2015-10-29 14:12:54.867077"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:12:54.907363"], ["updated_at", "2015-10-29 14:12:54.907363"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:12:54.934322"], ["updated_at", "2015-10-29 14:12:54.934322"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:12:54.948681"], ["updated_at", "2015-10-29 14:12:54.948681"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:12:54.951643"], ["updated_at", "2015-10-29 14:12:54.951643"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:12:54.977308"], ["updated_at", "2015-10-29 14:12:54.977308"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:12:54.983214"], ["updated_at", "2015-10-29 14:12:54.983214"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:12:54.987015"], ["updated_at", "2015-10-29 14:12:54.987015"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:17:05.148229"], ["updated_at", "2015-10-29 14:17:05.148229"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:17:05.176806"], ["updated_at", "2015-10-29 14:17:05.176806"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:05.198081"], ["updated_at", "2015-10-29 14:17:05.198081"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:17:05.218982"], ["updated_at", "2015-10-29 14:17:05.218982"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:17:05.222507"], ["updated_at", "2015-10-29 14:17:05.222507"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:17:05.241438"], ["updated_at", "2015-10-29 14:17:05.241438"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:17:05.246425"], ["updated_at", "2015-10-29 14:17:05.246425"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:05.255059"], ["updated_at", "2015-10-29 14:17:05.255059"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:17:05.258190"], ["updated_at", "2015-10-29 14:17:05.258190"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:17:05.259876"], ["updated_at", "2015-10-29 14:17:05.259876"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (3.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:17:05.278919"], ["updated_at", "2015-10-29 14:17:05.278919"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:05.287076"], ["updated_at", "2015-10-29 14:17:05.287076"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:17:05.295260"], ["updated_at", "2015-10-29 14:17:05.295260"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:17:05.304390"], ["updated_at", "2015-10-29 14:17:05.304390"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (7.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:17:23.045727"], ["updated_at", "2015-10-29 14:17:23.045727"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:17:23.071713"], ["updated_at", "2015-10-29 14:17:23.071713"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.103681"], ["updated_at", "2015-10-29 14:17:23.103681"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:17:23.114812"], ["updated_at", "2015-10-29 14:17:23.114812"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:17:23.117496"], ["updated_at", "2015-10-29 14:17:23.117496"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:17:23.138260"], ["updated_at", "2015-10-29 14:17:23.138260"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:17:23.144084"], ["updated_at", "2015-10-29 14:17:23.144084"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.149658"], ["updated_at", "2015-10-29 14:17:23.149658"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:17:23.152699"], ["updated_at", "2015-10-29 14:17:23.152699"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:17:23.154894"], ["updated_at", "2015-10-29 14:17:23.154894"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:17:23.174163"], ["updated_at", "2015-10-29 14:17:23.174163"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.184532"], ["updated_at", "2015-10-29 14:17:23.184532"]] [1m[35m (0.6ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:17:23.205210"], ["updated_at", "2015-10-29 14:17:23.205210"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 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.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:17:23.231281"], ["updated_at", "2015-10-29 14:17:23.231281"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:17:23.238180"], ["updated_at", "2015-10-29 14:17:23.238180"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:17:23.250619"], ["updated_at", "2015-10-29 14:17:23.250619"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.7ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:27:24.865254"], ["updated_at", "2015-10-29 14:27:24.865254"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:27:24.890255"], ["updated_at", "2015-10-29 14:27:24.890255"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:27:24.917646"], ["updated_at", "2015-10-29 14:27:24.917646"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:27:24.937522"], ["updated_at", "2015-10-29 14:27:24.937522"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:27:24.940836"], ["updated_at", "2015-10-29 14:27:24.940836"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:27:24.962250"], ["updated_at", "2015-10-29 14:27:24.962250"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:27:24.967234"], ["updated_at", "2015-10-29 14:27:24.967234"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:27:24.973117"], ["updated_at", "2015-10-29 14:27:24.973117"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:27:24.980777"], ["updated_at", "2015-10-29 14:27:24.980777"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:27:24.985834"], ["updated_at", "2015-10-29 14:27:24.985834"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:27:25.000074"], ["updated_at", "2015-10-29 14:27:25.000074"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:27:25.005619"], ["updated_at", "2015-10-29 14:27:25.005619"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:27:25.012622"], ["updated_at", "2015-10-29 14:27:25.012622"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:27:25.048196"], ["updated_at", "2015-10-29 14:27:25.048196"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:27:25.054822"], ["updated_at", "2015-10-29 14:27:25.054822"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:27:25.066911"], ["updated_at", "2015-10-29 14:27:25.066911"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (1.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:28:17.424723"], ["updated_at", "2015-10-29 14:28:17.424723"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:28:17.451041"], ["updated_at", "2015-10-29 14:28:17.451041"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:17.476016"], ["updated_at", "2015-10-29 14:28:17.476016"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:28:17.497051"], ["updated_at", "2015-10-29 14:28:17.497051"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:28:17.500671"], ["updated_at", "2015-10-29 14:28:17.500671"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (8.2ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:28:17.527357"], ["updated_at", "2015-10-29 14:28:17.527357"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:28:17.532939"], ["updated_at", "2015-10-29 14:28:17.532939"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:17.540938"], ["updated_at", "2015-10-29 14:28:17.540938"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:28:17.547226"], ["updated_at", "2015-10-29 14:28:17.547226"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:28:17.553687"], ["updated_at", "2015-10-29 14:28:17.553687"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:28:17.568158"], ["updated_at", "2015-10-29 14:28:17.568158"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:17.578460"], ["updated_at", "2015-10-29 14:28:17.578460"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:28:17.586640"], ["updated_at", "2015-10-29 14:28:17.586640"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:17.602453"], ["updated_at", "2015-10-29 14:28:17.602453"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:28:17.607258"], ["updated_at", "2015-10-29 14:28:17.607258"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:28:17.614901"], ["updated_at", "2015-10-29 14:28:17.614901"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:28:47.680605"], ["updated_at", "2015-10-29 14:28:47.680605"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:28:47.732549"], ["updated_at", "2015-10-29 14:28:47.732549"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:47.770540"], ["updated_at", "2015-10-29 14:28:47.770540"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:28:47.785427"], ["updated_at", "2015-10-29 14:28:47.785427"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:28:47.789324"], ["updated_at", "2015-10-29 14:28:47.789324"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:28:47.809785"], ["updated_at", "2015-10-29 14:28:47.809785"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:28:47.814060"], ["updated_at", "2015-10-29 14:28:47.814060"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:47.820720"], ["updated_at", "2015-10-29 14:28:47.820720"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:28:47.825850"], ["updated_at", "2015-10-29 14:28:47.825850"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:28:47.832213"], ["updated_at", "2015-10-29 14:28:47.832213"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.6ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.6ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:28:47.849111"], ["updated_at", "2015-10-29 14:28:47.849111"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (2.8ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:47.854916"], ["updated_at", "2015-10-29 14:28:47.854916"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:28:47.870455"], ["updated_at", "2015-10-29 14:28:47.870455"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:28:47.899855"], ["updated_at", "2015-10-29 14:28:47.899855"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:28:47.908042"], ["updated_at", "2015-10-29 14:28:47.908042"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.7ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:28:47.921801"], ["updated_at", "2015-10-29 14:28:47.921801"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:30:27.999168"], ["updated_at", "2015-10-29 14:30:27.999168"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:30:28.033726"], ["updated_at", "2015-10-29 14:30:28.033726"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.5ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:30:28.073246"], ["updated_at", "2015-10-29 14:30:28.073246"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:30:28.088162"], ["updated_at", "2015-10-29 14:30:28.088162"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:30:28.091331"], ["updated_at", "2015-10-29 14:30:28.091331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:30:28.110034"], ["updated_at", "2015-10-29 14:30:28.110034"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:30:28.120088"], ["updated_at", "2015-10-29 14:30:28.120088"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:30:28.123439"], ["updated_at", "2015-10-29 14:30:28.123439"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:30:28.133104"], ["updated_at", "2015-10-29 14:30:28.133104"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:30:28.136217"], ["updated_at", "2015-10-29 14:30:28.136217"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.6ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:30:28.152605"], ["updated_at", "2015-10-29 14:30:28.152605"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:30:28.156632"], ["updated_at", "2015-10-29 14:30:28.156632"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:30:28.179931"], ["updated_at", "2015-10-29 14:30:28.179931"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:30:28.204872"], ["updated_at", "2015-10-29 14:30:28.204872"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:30:28.222320"], ["updated_at", "2015-10-29 14:30:28.222320"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:30:28.237402"], ["updated_at", "2015-10-29 14:30:28.237402"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:31:05.839289"], ["updated_at", "2015-10-29 14:31:05.839289"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:31:05.875689"], ["updated_at", "2015-10-29 14:31:05.875689"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.5ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:05.908430"], ["updated_at", "2015-10-29 14:31:05.908430"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:05.921833"], ["updated_at", "2015-10-29 14:31:05.921833"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:31:05.925407"], ["updated_at", "2015-10-29 14:31:05.925407"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:31:05.946093"], ["updated_at", "2015-10-29 14:31:05.946093"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:31:05.955016"], ["updated_at", "2015-10-29 14:31:05.955016"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:05.958223"], ["updated_at", "2015-10-29 14:31:05.958223"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:05.964276"], ["updated_at", "2015-10-29 14:31:05.964276"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:31:05.973470"], ["updated_at", "2015-10-29 14:31:05.973470"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:31:05.989517"], ["updated_at", "2015-10-29 14:31:05.989517"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 14:31:05.993222"], ["updated_at", "2015-10-29 14:31:05.993222"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:06.014151"], ["updated_at", "2015-10-29 14:31:06.014151"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:06.042527"], ["updated_at", "2015-10-29 14:31:06.042527"]] [1m[36m (5.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:31:06.054562"], ["updated_at", "2015-10-29 14:31:06.054562"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:31:06.058424"], ["updated_at", "2015-10-29 14:31:06.058424"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:31:40.701575"], ["updated_at", "2015-10-29 14:31:40.701575"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:31:40.727843"], ["updated_at", "2015-10-29 14:31:40.727843"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:40.759164"], ["updated_at", "2015-10-29 14:31:40.759164"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:40.770003"], ["updated_at", "2015-10-29 14:31:40.770003"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:31:40.773866"], ["updated_at", "2015-10-29 14:31:40.773866"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (9.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:31:40.801475"], ["updated_at", "2015-10-29 14:31:40.801475"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:31:40.810064"], ["updated_at", "2015-10-29 14:31:40.810064"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:40.816963"], ["updated_at", "2015-10-29 14:31:40.816963"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:40.826976"], ["updated_at", "2015-10-29 14:31:40.826976"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:31:40.828878"], ["updated_at", "2015-10-29 14:31:40.828878"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:31:40.843666"], ["updated_at", "2015-10-29 14:31:40.843666"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (2.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-29 14:31:40.849558"], ["updated_at", "2015-10-29 14:31:40.849558"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:40.867732"], ["updated_at", "2015-10-29 14:31:40.867732"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:40.894869"], ["updated_at", "2015-10-29 14:31:40.894869"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:31:40.900600"], ["updated_at", "2015-10-29 14:31:40.900600"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:31:40.908908"], ["updated_at", "2015-10-29 14:31:40.908908"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (2.5ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (7.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:31:57.043743"], ["updated_at", "2015-10-29 14:31:57.043743"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:31:57.068166"], ["updated_at", "2015-10-29 14:31:57.068166"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:57.091835"], ["updated_at", "2015-10-29 14:31:57.091835"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:57.108168"], ["updated_at", "2015-10-29 14:31:57.108168"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:31:57.110912"], ["updated_at", "2015-10-29 14:31:57.110912"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (8.8ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:31:57.137367"], ["updated_at", "2015-10-29 14:31:57.137367"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:31:57.143166"], ["updated_at", "2015-10-29 14:31:57.143166"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:57.148459"], ["updated_at", "2015-10-29 14:31:57.148459"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:57.155568"], ["updated_at", "2015-10-29 14:31:57.155568"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:31:57.161395"], ["updated_at", "2015-10-29 14:31:57.161395"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:31:57.177534"], ["updated_at", "2015-10-29 14:31:57.177534"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-29 14:31:57.186309"], ["updated_at", "2015-10-29 14:31:57.186309"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:31:57.194136"], ["updated_at", "2015-10-29 14:31:57.194136"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:31:57.220635"], ["updated_at", "2015-10-29 14:31:57.220635"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:31:57.224833"], ["updated_at", "2015-10-29 14:31:57.224833"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:31:57.244026"], ["updated_at", "2015-10-29 14:31:57.244026"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:32:29.295078"], ["updated_at", "2015-10-29 14:32:29.295078"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.323703"], ["updated_at", "2015-10-29 14:32:29.323703"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.343923"], ["updated_at", "2015-10-29 14:32:29.343923"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.359608"], ["updated_at", "2015-10-29 14:32:29.359608"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.362759"], ["updated_at", "2015-10-29 14:32:29.362759"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 0.0ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:32:29.399536"], ["updated_at", "2015-10-29 14:32:29.399536"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:29.408884"], ["updated_at", "2015-10-29 14:32:29.408884"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.417302"], ["updated_at", "2015-10-29 14:32:29.417302"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.422472"], ["updated_at", "2015-10-29 14:32:29.422472"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.424748"], ["updated_at", "2015-10-29 14:32:29.424748"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (15.3ms) Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.7ms) [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 (1.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:32:29.452060"], ["updated_at", "2015-10-29 14:32:29.452060"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:29.467256"], ["updated_at", "2015-10-29 14:32:29.467256"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.477301"], ["updated_at", "2015-10-29 14:32:29.477301"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.483037"], ["updated_at", "2015-10-29 14:32:29.483037"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.485410"], ["updated_at", "2015-10-29 14:32:29.485410"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (5.5ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 0.3ms) [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:32:29.517605"], ["updated_at", "2015-10-29 14:32:29.517605"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:29.528520"], ["updated_at", "2015-10-29 14:32:29.528520"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.535701"], ["updated_at", "2015-10-29 14:32:29.535701"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.541923"], ["updated_at", "2015-10-29 14:32:29.541923"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.544079"], ["updated_at", "2015-10-29 14:32:29.544079"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.9ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.2ms) Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 1.1ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 14:32:29.563399"], ["updated_at", "2015-10-29 14:32:29.563399"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.576923"], ["updated_at", "2015-10-29 14:32:29.576923"]] [1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.588812"], ["updated_at", "2015-10-29 14:32:29.588812"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.592126"], ["updated_at", "2015-10-29 14:32:29.592126"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.594259"], ["updated_at", "2015-10-29 14:32:29.594259"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.4ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 14:32:29.790119"], ["updated_at", "2015-10-29 14:32:29.790119"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:29.793131"], ["updated_at", "2015-10-29 14:32:29.793131"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.796431"], ["updated_at", "2015-10-29 14:32:29.796431"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.807259"], ["updated_at", "2015-10-29 14:32:29.807259"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.810010"], ["updated_at", "2015-10-29 14:32:29.810010"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:32:29.816174"], ["updated_at", "2015-10-29 14:32:29.816174"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:29.818913"], ["updated_at", "2015-10-29 14:32:29.818913"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.821720"], ["updated_at", "2015-10-29 14:32:29.821720"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.824844"], ["updated_at", "2015-10-29 14:32:29.824844"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.827630"], ["updated_at", "2015-10-29 14:32:29.827630"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 22.2ms Sent mail to user7@sleede.com (7.1ms) Date: Thu, 29 Oct 2015 15:32:29 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56322dfdd2100_34bc3fc4c0c5e1d48805d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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 (10.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:32:29.866734"], ["updated_at", "2015-10-29 14:32:29.866734"]] [1m[35m (2.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:29.892717"], ["updated_at", "2015-10-29 14:32:29.892717"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.897435"], ["updated_at", "2015-10-29 14:32:29.897435"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.900389"], ["updated_at", "2015-10-29 14:32:29.900389"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.906721"], ["updated_at", "2015-10-29 14:32:29.906721"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.4ms Sent mail to user8@sleede.com (3.4ms) Date: Thu, 29 Oct 2015 15:32:29 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56322dfddfd85_34bc3fc4c0c5e1d488177@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.5ms)[0m [1mbegin transaction[0m [1m[35m (0.6ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:32:29.926057"], ["updated_at", "2015-10-29 14:32:29.926057"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:29.931783"], ["updated_at", "2015-10-29 14:32:29.931783"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.942199"], ["updated_at", "2015-10-29 14:32:29.942199"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.954517"], ["updated_at", "2015-10-29 14:32:29.954517"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.959821"], ["updated_at", "2015-10-29 14:32:29.959821"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:32:29 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56322dfdeb382_34bc3fc4c0c5e1d488288@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:32:29.969533"], ["updated_at", "2015-10-29 14:32:29.969533"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:29.972692"], ["updated_at", "2015-10-29 14:32:29.972692"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:29.979087"], ["updated_at", "2015-10-29 14:32:29.979087"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:29.987359"], ["updated_at", "2015-10-29 14:32:29.987359"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:29.991325"], ["updated_at", "2015-10-29 14:32:29.991325"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:32:29 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56322dfdf2f4b_34bc3fc4c0c5e1d4883ae@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.001611"], ["updated_at", "2015-10-29 14:32:30.001611"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 14:32:30.005392"], ["updated_at", "2015-10-29 14:32:30.005392"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.012544"], ["updated_at", "2015-10-29 14:32:30.012544"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.024442"], ["updated_at", "2015-10-29 14:32:30.024442"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:30.028080"], ["updated_at", "2015-10-29 14:32:30.028080"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.3ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.043642"], ["updated_at", "2015-10-29 14:32:30.043642"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 14:32:30.050789"], ["updated_at", "2015-10-29 14:32:30.050789"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.060556"], ["updated_at", "2015-10-29 14:32:30.060556"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.073427"], ["updated_at", "2015-10-29 14:32:30.073427"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 14:32:30.078915"], ["updated_at", "2015-10-29 14:32:30.078915"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.081896"], ["updated_at", "2015-10-29 14:32:30.081896"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.083853"], ["updated_at", "2015-10-29 14:32:30.083853"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:30.085897"], ["updated_at", "2015-10-29 14:32:30.085897"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.091370"], ["updated_at", "2015-10-29 14:32:30.091370"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 14:32:30.095013"], ["updated_at", "2015-10-29 14:32:30.095013"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.108198"], ["updated_at", "2015-10-29 14:32:30.108198"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.114982"], ["updated_at", "2015-10-29 14:32:30.114982"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 14:32:30.117188"], ["updated_at", "2015-10-29 14:32:30.117188"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.122875"], ["updated_at", "2015-10-29 14:32:30.122875"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.127928"], ["updated_at", "2015-10-29 14:32:30.127928"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:30.134842"], ["updated_at", "2015-10-29 14:32:30.134842"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.142990"], ["updated_at", "2015-10-29 14:32:30.142990"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 14:32:30.147295"], ["updated_at", "2015-10-29 14:32:30.147295"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.153429"], ["updated_at", "2015-10-29 14:32:30.153429"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.159095"], ["updated_at", "2015-10-29 14:32:30.159095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.166574"], ["updated_at", "2015-10-29 14:32:30.166574"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 7.8ms Sent mail to user16@sleede.com (2.9ms) Date: Thu, 29 Oct 2015 15:32:30 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <56322dfe2ba76_34bc3fc4c0c5e1d48846d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.187306"], ["updated_at", "2015-10-29 14:32:30.187306"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 14:32:30.199592"], ["updated_at", "2015-10-29 14:32:30.199592"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.208559"], ["updated_at", "2015-10-29 14:32:30.208559"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.214291"], ["updated_at", "2015-10-29 14:32:30.214291"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.217667"], ["updated_at", "2015-10-29 14:32:30.217667"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2ebf996c-f171-4c6e-be03-366dae317442) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] NotificationsMailer#send_mail_by: processed outbound mail in 4.0ms [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Sent mail to user17@sleede.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Date: Thu, 29 Oct 2015 15:32:30 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <56322dfe3d2cc_34bc3fc4c0c5e1d4885ec@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [2ebf996c-f171-4c6e-be03-366dae317442] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.14ms [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.263752"], ["updated_at", "2015-10-29 14:32:30.263752"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 14:32:30.271780"], ["updated_at", "2015-10-29 14:32:30.271780"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.277651"], ["updated_at", "2015-10-29 14:32:30.277651"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.287101"], ["updated_at", "2015-10-29 14:32:30.287101"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.296380"], ["updated_at", "2015-10-29 14:32:30.296380"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:32:30.300216"], ["updated_at", "2015-10-29 14:32:30.300216"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.317942"], ["updated_at", "2015-10-29 14:32:30.317942"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.323860"], ["updated_at", "2015-10-29 14:32:30.323860"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.331114"], ["updated_at", "2015-10-29 14:32:30.331114"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 14:32:30.338143"], ["updated_at", "2015-10-29 14:32:30.338143"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (2.8ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.354601"], ["updated_at", "2015-10-29 14:32:30.354601"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.362008"], ["updated_at", "2015-10-29 14:32:30.362008"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 14:32:30.367509"], ["updated_at", "2015-10-29 14:32:30.367509"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (2.9ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.380819"], ["updated_at", "2015-10-29 14:32:30.380819"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.387607"], ["updated_at", "2015-10-29 14:32:30.387607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:30.391690"], ["updated_at", "2015-10-29 14:32:30.391690"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.397528"], ["updated_at", "2015-10-29 14:32:30.397528"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:32:30.405654"], ["updated_at", "2015-10-29 14:32:30.405654"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.413415"], ["updated_at", "2015-10-29 14:32:30.413415"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.420758"], ["updated_at", "2015-10-29 14:32:30.420758"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:32:30.423817"], ["updated_at", "2015-10-29 14:32:30.423817"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.429568"], ["updated_at", "2015-10-29 14:32:30.429568"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.433418"], ["updated_at", "2015-10-29 14:32:30.433418"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:30.439277"], ["updated_at", "2015-10-29 14:32:30.439277"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.445899"], ["updated_at", "2015-10-29 14:32:30.445899"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 14:32:30.447903"], ["updated_at", "2015-10-29 14:32:30.447903"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.456330"], ["updated_at", "2015-10-29 14:32:30.456330"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.470239"], ["updated_at", "2015-10-29 14:32:30.470239"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 14:32:30.477046"], ["updated_at", "2015-10-29 14:32:30.477046"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.480847"], ["updated_at", "2015-10-29 14:32:30.480847"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.482878"], ["updated_at", "2015-10-29 14:32:30.482878"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:30.484946"], ["updated_at", "2015-10-29 14:32:30.484946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 2], ["attached_object_type", "Message"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.495365"], ["updated_at", "2015-10-29 14:32:30.495365"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 14:32:30.499762"], ["updated_at", "2015-10-29 14:32:30.499762"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.512332"], ["updated_at", "2015-10-29 14:32:30.512332"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.521790"], ["updated_at", "2015-10-29 14:32:30.521790"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.535033"], ["updated_at", "2015-10-29 14:32:30.535033"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.543446"], ["updated_at", "2015-10-29 14:32:30.543446"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:32:30.545637"], ["updated_at", "2015-10-29 14:32:30.545637"]] [1m[35m (0.6ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.554304"], ["updated_at", "2015-10-29 14:32:30.554304"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.558164"], ["updated_at", "2015-10-29 14:32:30.558164"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:32:30.559653"], ["updated_at", "2015-10-29 14:32:30.559653"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.562746"], ["updated_at", "2015-10-29 14:32:30.562746"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.568151"], ["updated_at", "2015-10-29 14:32:30.568151"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.578004"], ["updated_at", "2015-10-29 14:32:30.578004"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 14:32:30.579962"], ["updated_at", "2015-10-29 14:32:30.579962"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.586923"], ["updated_at", "2015-10-29 14:32:30.586923"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.9ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.598436"], ["updated_at", "2015-10-29 14:32:30.598436"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 14:32:30.610937"], ["updated_at", "2015-10-29 14:32:30.610937"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.617609"], ["updated_at", "2015-10-29 14:32:30.617609"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:32:30.619751"], ["updated_at", "2015-10-29 14:32:30.619751"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (3.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.634470"], ["updated_at", "2015-10-29 14:32:30.634470"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:32:30.643509"], ["updated_at", "2015-10-29 14:32:30.643509"]] [1m[35m (0.9ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.655489"], ["updated_at", "2015-10-29 14:32:30.655489"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.678932"], ["updated_at", "2015-10-29 14:32:30.678932"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:32:30.682185"], ["updated_at", "2015-10-29 14:32:30.682185"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.685920"], ["updated_at", "2015-10-29 14:32:30.685920"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.688074"], ["updated_at", "2015-10-29 14:32:30.688074"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.5ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-29 14:32:30.702865"], ["updated_at", "2015-10-29 14:32:30.702865"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.716966"], ["updated_at", "2015-10-29 14:32:30.716966"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.731985"], ["updated_at", "2015-10-29 14:32:30.731985"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:32:30.742666"], ["updated_at", "2015-10-29 14:32:30.742666"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.745817"], ["updated_at", "2015-10-29 14:32:30.745817"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.752878"], ["updated_at", "2015-10-29 14:32:30.752878"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user35@sleede.com"], ["name", "user35"], ["created_at", "2015-10-29 14:32:30.759414"], ["updated_at", "2015-10-29 14:32:30.759414"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.763759"], ["updated_at", "2015-10-29 14:32:30.763759"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.768473"], ["updated_at", "2015-10-29 14:32:30.768473"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user36@sleede.com"], ["name", "user36"], ["created_at", "2015-10-29 14:32:30.793054"], ["updated_at", "2015-10-29 14:32:30.793054"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:32:30.799409"], ["updated_at", "2015-10-29 14:32:30.799409"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.807968"], ["updated_at", "2015-10-29 14:32:30.807968"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.811149"], ["updated_at", "2015-10-29 14:32:30.811149"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:32:30.813960"], ["updated_at", "2015-10-29 14:32:30.813960"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user37@sleede.com"], ["name", "user37"], ["created_at", "2015-10-29 14:32:30.833133"], ["updated_at", "2015-10-29 14:32:30.833133"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-29 14:32:30.837161"], ["updated_at", "2015-10-29 14:32:30.837161"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:32:30.847313"], ["updated_at", "2015-10-29 14:32:30.847313"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:32:30.869017"], ["updated_at", "2015-10-29 14:32:30.869017"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user38@sleede.com"], ["name", "user38"], ["created_at", "2015-10-29 14:32:30.875338"], ["updated_at", "2015-10-29 14:32:30.875338"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:32:30.878832"], ["updated_at", "2015-10-29 14:32:30.878832"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.6ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:33:45.330786"], ["updated_at", "2015-10-29 14:33:45.330786"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.349998"], ["updated_at", "2015-10-29 14:33:45.349998"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.376189"], ["updated_at", "2015-10-29 14:33:45.376189"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.394340"], ["updated_at", "2015-10-29 14:33:45.394340"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.398299"], ["updated_at", "2015-10-29 14:33:45.398299"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 11.4ms | ActiveRecord: 0.0ms) [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:33:45.434254"], ["updated_at", "2015-10-29 14:33:45.434254"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.438661"], ["updated_at", "2015-10-29 14:33:45.438661"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.446168"], ["updated_at", "2015-10-29 14:33:45.446168"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.449284"], ["updated_at", "2015-10-29 14:33:45.449284"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.450993"], ["updated_at", "2015-10-29 14:33:45.450993"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.4ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.8ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (20.0ms) Completed 200 OK in 22ms (Views: 19.9ms | ActiveRecord: 0.7ms) [1m[35m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:33:45.483601"], ["updated_at", "2015-10-29 14:33:45.483601"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.487051"], ["updated_at", "2015-10-29 14:33:45.487051"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.497749"], ["updated_at", "2015-10-29 14:33:45.497749"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.507975"], ["updated_at", "2015-10-29 14:33:45.507975"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.511743"], ["updated_at", "2015-10-29 14:33:45.511743"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) [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.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:33:45.529102"], ["updated_at", "2015-10-29 14:33:45.529102"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.533890"], ["updated_at", "2015-10-29 14:33:45.533890"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.545369"], ["updated_at", "2015-10-29 14:33:45.545369"]] [1m[36m (0.6ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.564538"], ["updated_at", "2015-10-29 14:33:45.564538"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.567627"], ["updated_at", "2015-10-29 14:33:45.567627"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms) [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 14:33:45.583828"], ["updated_at", "2015-10-29 14:33:45.583828"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.592430"], ["updated_at", "2015-10-29 14:33:45.592430"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.596471"], ["updated_at", "2015-10-29 14:33:45.596471"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.599304"], ["updated_at", "2015-10-29 14:33:45.599304"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.601650"], ["updated_at", "2015-10-29 14:33:45.601650"]] [1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.5ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 14:33:45.798146"], ["updated_at", "2015-10-29 14:33:45.798146"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:45.800881"], ["updated_at", "2015-10-29 14:33:45.800881"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.806136"], ["updated_at", "2015-10-29 14:33:45.806136"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.814479"], ["updated_at", "2015-10-29 14:33:45.814479"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.816313"], ["updated_at", "2015-10-29 14:33:45.816313"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:33:45.824461"], ["updated_at", "2015-10-29 14:33:45.824461"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.826931"], ["updated_at", "2015-10-29 14:33:45.826931"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.829273"], ["updated_at", "2015-10-29 14:33:45.829273"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.831908"], ["updated_at", "2015-10-29 14:33:45.831908"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.833562"], ["updated_at", "2015-10-29 14:33:45.833562"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.4ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 25.2ms Sent mail to user7@sleede.com (7.5ms) Date: Thu, 29 Oct 2015 15:33:45 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56322e49d363a_34d13fe101c601d4596d0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.6ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:33:45.881486"], ["updated_at", "2015-10-29 14:33:45.881486"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.890963"], ["updated_at", "2015-10-29 14:33:45.890963"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.893972"], ["updated_at", "2015-10-29 14:33:45.893972"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.897585"], ["updated_at", "2015-10-29 14:33:45.897585"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.899501"], ["updated_at", "2015-10-29 14:33:45.899501"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (2.0ms) Date: Thu, 29 Oct 2015 15:33:45 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56322e49dc648_34d13fe101c601d45978d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (2.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:33:45.914835"], ["updated_at", "2015-10-29 14:33:45.914835"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.920813"], ["updated_at", "2015-10-29 14:33:45.920813"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.923695"], ["updated_at", "2015-10-29 14:33:45.923695"]] [1m[36m (1.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.939009"], ["updated_at", "2015-10-29 14:33:45.939009"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.947228"], ["updated_at", "2015-10-29 14:33:45.947228"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:33:45 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56322e49e81fb_34d13fe101c601d459840@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:33:45.958930"], ["updated_at", "2015-10-29 14:33:45.958930"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.965071"], ["updated_at", "2015-10-29 14:33:45.965071"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:45.975868"], ["updated_at", "2015-10-29 14:33:45.975868"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:45.981998"], ["updated_at", "2015-10-29 14:33:45.981998"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:45.983654"], ["updated_at", "2015-10-29 14:33:45.983654"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.2ms Sent mail to user10@sleede.com (2.9ms) Date: Thu, 29 Oct 2015 15:33:45 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56322e49f14c5_34d13fe101c601d4599d0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:45.995988"], ["updated_at", "2015-10-29 14:33:45.995988"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 14:33:45.998776"], ["updated_at", "2015-10-29 14:33:45.998776"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.013896"], ["updated_at", "2015-10-29 14:33:46.013896"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.9ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.020384"], ["updated_at", "2015-10-29 14:33:46.020384"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:46.026922"], ["updated_at", "2015-10-29 14:33:46.026922"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.045214"], ["updated_at", "2015-10-29 14:33:46.045214"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 14:33:46.047976"], ["updated_at", "2015-10-29 14:33:46.047976"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.060303"], ["updated_at", "2015-10-29 14:33:46.060303"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.070206"], ["updated_at", "2015-10-29 14:33:46.070206"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 14:33:46.079873"], ["updated_at", "2015-10-29 14:33:46.079873"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.082966"], ["updated_at", "2015-10-29 14:33:46.082966"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.084412"], ["updated_at", "2015-10-29 14:33:46.084412"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:46.087179"], ["updated_at", "2015-10-29 14:33:46.087179"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.091272"], ["updated_at", "2015-10-29 14:33:46.091272"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 14:33:46.097859"], ["updated_at", "2015-10-29 14:33:46.097859"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.110951"], ["updated_at", "2015-10-29 14:33:46.110951"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.120988"], ["updated_at", "2015-10-29 14:33:46.120988"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 14:33:46.131540"], ["updated_at", "2015-10-29 14:33:46.131540"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.134181"], ["updated_at", "2015-10-29 14:33:46.134181"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.135551"], ["updated_at", "2015-10-29 14:33:46.135551"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:46.141235"], ["updated_at", "2015-10-29 14:33:46.141235"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.145237"], ["updated_at", "2015-10-29 14:33:46.145237"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 14:33:46.147306"], ["updated_at", "2015-10-29 14:33:46.147306"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.150184"], ["updated_at", "2015-10-29 14:33:46.150184"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.159665"], ["updated_at", "2015-10-29 14:33:46.159665"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.162300"], ["updated_at", "2015-10-29 14:33:46.162300"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.4ms Sent mail to user16@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:33:46 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <56322e4a28683_34d13fe101c601d46008e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.173870"], ["updated_at", "2015-10-29 14:33:46.173870"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 14:33:46.176290"], ["updated_at", "2015-10-29 14:33:46.176290"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.192471"], ["updated_at", "2015-10-29 14:33:46.192471"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.199161"], ["updated_at", "2015-10-29 14:33:46.199161"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.201349"], ["updated_at", "2015-10-29 14:33:46.201349"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 22d24601-ed67-4a36-a0e6-6c825fa4ca75) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] NotificationsMailer#send_mail_by: processed outbound mail in 3.7ms [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Sent mail to user17@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Date: Thu, 29 Oct 2015 15:33:46 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <56322e4a390c4_34d13fe101c601d4601f5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [22d24601-ed67-4a36-a0e6-6c825fa4ca75] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.8ms [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.238575"], ["updated_at", "2015-10-29 14:33:46.238575"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.8ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 14:33:46.245041"], ["updated_at", "2015-10-29 14:33:46.245041"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.250876"], ["updated_at", "2015-10-29 14:33:46.250876"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.254474"], ["updated_at", "2015-10-29 14:33:46.254474"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.265130"], ["updated_at", "2015-10-29 14:33:46.265130"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:33:46.267717"], ["updated_at", "2015-10-29 14:33:46.267717"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.278315"], ["updated_at", "2015-10-29 14:33:46.278315"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.286973"], ["updated_at", "2015-10-29 14:33:46.286973"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.297364"], ["updated_at", "2015-10-29 14:33:46.297364"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 14:33:46.301242"], ["updated_at", "2015-10-29 14:33:46.301242"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.308540"], ["updated_at", "2015-10-29 14:33:46.308540"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.314508"], ["updated_at", "2015-10-29 14:33:46.314508"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 14:33:46.317808"], ["updated_at", "2015-10-29 14:33:46.317808"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.322776"], ["updated_at", "2015-10-29 14:33:46.322776"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.325156"], ["updated_at", "2015-10-29 14:33:46.325156"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:46.327593"], ["updated_at", "2015-10-29 14:33:46.327593"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.333957"], ["updated_at", "2015-10-29 14:33:46.333957"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:33:46.339484"], ["updated_at", "2015-10-29 14:33:46.339484"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (4.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.357351"], ["updated_at", "2015-10-29 14:33:46.357351"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.361918"], ["updated_at", "2015-10-29 14:33:46.361918"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:33:46.363641"], ["updated_at", "2015-10-29 14:33:46.363641"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.365958"], ["updated_at", "2015-10-29 14:33:46.365958"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.367595"], ["updated_at", "2015-10-29 14:33:46.367595"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:46.369456"], ["updated_at", "2015-10-29 14:33:46.369456"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.376459"], ["updated_at", "2015-10-29 14:33:46.376459"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 14:33:46.378564"], ["updated_at", "2015-10-29 14:33:46.378564"]] [1m[36m (3.7ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.391451"], ["updated_at", "2015-10-29 14:33:46.391451"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.399644"], ["updated_at", "2015-10-29 14:33:46.399644"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 14:33:46.401578"], ["updated_at", "2015-10-29 14:33:46.401578"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.406928"], ["updated_at", "2015-10-29 14:33:46.406928"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.415364"], ["updated_at", "2015-10-29 14:33:46.415364"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:46.420184"], ["updated_at", "2015-10-29 14:33:46.420184"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 2], ["attached_object_type", "Message"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.429008"], ["updated_at", "2015-10-29 14:33:46.429008"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 14:33:46.430997"], ["updated_at", "2015-10-29 14:33:46.430997"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.441742"], ["updated_at", "2015-10-29 14:33:46.441742"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.449008"], ["updated_at", "2015-10-29 14:33:46.449008"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.453596"], ["updated_at", "2015-10-29 14:33:46.453596"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.464193"], ["updated_at", "2015-10-29 14:33:46.464193"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:33:46.480296"], ["updated_at", "2015-10-29 14:33:46.480296"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.483947"], ["updated_at", "2015-10-29 14:33:46.483947"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.489207"], ["updated_at", "2015-10-29 14:33:46.489207"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:33:46.499814"], ["updated_at", "2015-10-29 14:33:46.499814"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.508103"], ["updated_at", "2015-10-29 14:33:46.508103"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.510645"], ["updated_at", "2015-10-29 14:33:46.510645"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.515120"], ["updated_at", "2015-10-29 14:33:46.515120"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 14:33:46.517869"], ["updated_at", "2015-10-29 14:33:46.517869"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.529126"], ["updated_at", "2015-10-29 14:33:46.529126"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.531851"], ["updated_at", "2015-10-29 14:33:46.531851"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 14:33:46.533325"], ["updated_at", "2015-10-29 14:33:46.533325"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.535372"], ["updated_at", "2015-10-29 14:33:46.535372"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:46.540462"], ["updated_at", "2015-10-29 14:33:46.540462"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.550907"], ["updated_at", "2015-10-29 14:33:46.550907"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:33:46.556756"], ["updated_at", "2015-10-29 14:33:46.556756"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.561188"], ["updated_at", "2015-10-29 14:33:46.561188"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.567909"], ["updated_at", "2015-10-29 14:33:46.567909"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:33:46.570579"], ["updated_at", "2015-10-29 14:33:46.570579"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.582566"], ["updated_at", "2015-10-29 14:33:46.582566"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.586061"], ["updated_at", "2015-10-29 14:33:46.586061"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-29 14:33:46.591286"], ["updated_at", "2015-10-29 14:33:46.591286"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.594937"], ["updated_at", "2015-10-29 14:33:46.594937"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.602962"], ["updated_at", "2015-10-29 14:33:46.602962"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:33:46.620164"], ["updated_at", "2015-10-29 14:33:46.620164"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.626180"], ["updated_at", "2015-10-29 14:33:46.626180"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.634315"], ["updated_at", "2015-10-29 14:33:46.634315"]] [1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user35@sleede.com"], ["name", "user35"], ["created_at", "2015-10-29 14:33:46.660273"], ["updated_at", "2015-10-29 14:33:46.660273"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.668049"], ["updated_at", "2015-10-29 14:33:46.668049"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (4.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.684605"], ["updated_at", "2015-10-29 14:33:46.684605"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [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.2ms)[0m begin transaction [1m[36m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user36@sleede.com"], ["name", "user36"], ["created_at", "2015-10-29 14:33:46.699081"], ["updated_at", "2015-10-29 14:33:46.699081"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:46.712989"], ["updated_at", "2015-10-29 14:33:46.712989"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.724049"], ["updated_at", "2015-10-29 14:33:46.724049"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.728312"], ["updated_at", "2015-10-29 14:33:46.728312"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:46.732472"], ["updated_at", "2015-10-29 14:33:46.732472"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user37@sleede.com"], ["name", "user37"], ["created_at", "2015-10-29 14:33:46.747724"], ["updated_at", "2015-10-29 14:33:46.747724"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-29 14:33:46.753181"], ["updated_at", "2015-10-29 14:33:46.753181"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:46.758515"], ["updated_at", "2015-10-29 14:33:46.758515"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:46.783407"], ["updated_at", "2015-10-29 14:33:46.783407"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user38@sleede.com"], ["name", "user38"], ["created_at", "2015-10-29 14:33:46.792605"], ["updated_at", "2015-10-29 14:33:46.792605"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:46.798854"], ["updated_at", "2015-10-29 14:33:46.798854"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.0ms)[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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:33:55.684167"], ["updated_at", "2015-10-29 14:33:55.684167"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:55.699046"], ["updated_at", "2015-10-29 14:33:55.699046"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:55.720276"], ["updated_at", "2015-10-29 14:33:55.720276"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:55.731722"], ["updated_at", "2015-10-29 14:33:55.731722"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:55.740529"], ["updated_at", "2015-10-29 14:33:55.740529"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 0.0ms) [1m[35m (8.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:33:55.779508"], ["updated_at", "2015-10-29 14:33:55.779508"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:55.782651"], ["updated_at", "2015-10-29 14:33:55.782651"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:55.788501"], ["updated_at", "2015-10-29 14:33:55.788501"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:55.792511"], ["updated_at", "2015-10-29 14:33:55.792511"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:55.794432"], ["updated_at", "2015-10-29 14:33:55.794432"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (16.5ms) Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.6ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:33:55.824930"], ["updated_at", "2015-10-29 14:33:55.824930"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:55.827548"], ["updated_at", "2015-10-29 14:33:55.827548"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:55.837377"], ["updated_at", "2015-10-29 14:33:55.837377"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:55.846873"], ["updated_at", "2015-10-29 14:33:55.846873"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:55.849449"], ["updated_at", "2015-10-29 14:33:55.849449"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:33:55.865489"], ["updated_at", "2015-10-29 14:33:55.865489"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:55.870473"], ["updated_at", "2015-10-29 14:33:55.870473"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:55.879963"], ["updated_at", "2015-10-29 14:33:55.879963"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:55.883786"], ["updated_at", "2015-10-29 14:33:55.883786"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:55.890330"], ["updated_at", "2015-10-29 14:33:55.890330"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (6.7ms) Completed 200 OK in 15ms (Views: 7.6ms | ActiveRecord: 0.8ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 14:33:55.917491"], ["updated_at", "2015-10-29 14:33:55.917491"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:55.921095"], ["updated_at", "2015-10-29 14:33:55.921095"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:55.928014"], ["updated_at", "2015-10-29 14:33:55.928014"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:55.933415"], ["updated_at", "2015-10-29 14:33:55.933415"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:55.936827"], ["updated_at", "2015-10-29 14:33:55.936827"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 14:33:56.102036"], ["updated_at", "2015-10-29 14:33:56.102036"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.105332"], ["updated_at", "2015-10-29 14:33:56.105332"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.109186"], ["updated_at", "2015-10-29 14:33:56.109186"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.116653"], ["updated_at", "2015-10-29 14:33:56.116653"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.119082"], ["updated_at", "2015-10-29 14:33:56.119082"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (9.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:33:56.135705"], ["updated_at", "2015-10-29 14:33:56.135705"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.142642"], ["updated_at", "2015-10-29 14:33:56.142642"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.147815"], ["updated_at", "2015-10-29 14:33:56.147815"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.153536"], ["updated_at", "2015-10-29 14:33:56.153536"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.157206"], ["updated_at", "2015-10-29 14:33:56.157206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.9ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 24.6ms Sent mail to user7@sleede.com (10.0ms) Date: Thu, 29 Oct 2015 15:33:56 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56322e542ee09_34d43fe3bd0601e034b0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[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.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:33:56.197641"], ["updated_at", "2015-10-29 14:33:56.197641"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.201681"], ["updated_at", "2015-10-29 14:33:56.201681"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.209604"], ["updated_at", "2015-10-29 14:33:56.209604"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.216186"], ["updated_at", "2015-10-29 14:33:56.216186"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.219146"], ["updated_at", "2015-10-29 14:33:56.219146"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.7ms Sent mail to user8@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:33:56 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56322e543760d_34d43fe3bd0601e0357d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:33:56.235346"], ["updated_at", "2015-10-29 14:33:56.235346"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.239679"], ["updated_at", "2015-10-29 14:33:56.239679"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.246042"], ["updated_at", "2015-10-29 14:33:56.246042"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.254105"], ["updated_at", "2015-10-29 14:33:56.254105"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.255954"], ["updated_at", "2015-10-29 14:33:56.255954"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.0ms Sent mail to user9@sleede.com (3.8ms) Date: Thu, 29 Oct 2015 15:33:56 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56322e5440609_34d43fe3bd0601e036f3@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:33:56.275093"], ["updated_at", "2015-10-29 14:33:56.275093"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.282796"], ["updated_at", "2015-10-29 14:33:56.282796"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.286089"], ["updated_at", "2015-10-29 14:33:56.286089"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.293812"], ["updated_at", "2015-10-29 14:33:56.293812"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.297582"], ["updated_at", "2015-10-29 14:33:56.297582"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:33:56 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56322e544988e_34d43fe3bd0601e037db@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.307127"], ["updated_at", "2015-10-29 14:33:56.307127"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 14:33:56.310543"], ["updated_at", "2015-10-29 14:33:56.310543"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.314815"], ["updated_at", "2015-10-29 14:33:56.314815"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.317930"], ["updated_at", "2015-10-29 14:33:56.317930"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.321406"], ["updated_at", "2015-10-29 14:33:56.321406"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.341967"], ["updated_at", "2015-10-29 14:33:56.341967"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 14:33:56.343945"], ["updated_at", "2015-10-29 14:33:56.343945"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.347255"], ["updated_at", "2015-10-29 14:33:56.347255"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.350672"], ["updated_at", "2015-10-29 14:33:56.350672"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 14:33:56.355532"], ["updated_at", "2015-10-29 14:33:56.355532"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.358897"], ["updated_at", "2015-10-29 14:33:56.358897"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.360444"], ["updated_at", "2015-10-29 14:33:56.360444"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.363880"], ["updated_at", "2015-10-29 14:33:56.363880"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.367697"], ["updated_at", "2015-10-29 14:33:56.367697"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 14:33:56.370135"], ["updated_at", "2015-10-29 14:33:56.370135"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.375118"], ["updated_at", "2015-10-29 14:33:56.375118"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.380601"], ["updated_at", "2015-10-29 14:33:56.380601"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 14:33:56.383360"], ["updated_at", "2015-10-29 14:33:56.383360"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.386695"], ["updated_at", "2015-10-29 14:33:56.386695"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.393210"], ["updated_at", "2015-10-29 14:33:56.393210"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.399734"], ["updated_at", "2015-10-29 14:33:56.399734"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.407071"], ["updated_at", "2015-10-29 14:33:56.407071"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 14:33:56.409193"], ["updated_at", "2015-10-29 14:33:56.409193"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.411829"], ["updated_at", "2015-10-29 14:33:56.411829"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.414979"], ["updated_at", "2015-10-29 14:33:56.414979"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.419970"], ["updated_at", "2015-10-29 14:33:56.419970"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.1ms Sent mail to user16@sleede.com (1.5ms) Date: Thu, 29 Oct 2015 15:33:56 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <56322e546892b_34d43fe3bd0601e038da@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.432083"], ["updated_at", "2015-10-29 14:33:56.432083"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 14:33:56.434020"], ["updated_at", "2015-10-29 14:33:56.434020"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.436614"], ["updated_at", "2015-10-29 14:33:56.436614"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.443979"], ["updated_at", "2015-10-29 14:33:56.443979"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.447103"], ["updated_at", "2015-10-29 14:33:56.447103"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f32de27c-4ac7-43fc-a856-254afc6d21b1) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] NotificationsMailer#send_mail_by: processed outbound mail in 3.5ms [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Sent mail to user17@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Date: Thu, 29 Oct 2015 15:33:56 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <56322e5475491_34d43fe3bd0601e0398a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [f32de27c-4ac7-43fc-a856-254afc6d21b1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.55ms [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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.484127"], ["updated_at", "2015-10-29 14:33:56.484127"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 14:33:56.486414"], ["updated_at", "2015-10-29 14:33:56.486414"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.492110"], ["updated_at", "2015-10-29 14:33:56.492110"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.496808"], ["updated_at", "2015-10-29 14:33:56.496808"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.507249"], ["updated_at", "2015-10-29 14:33:56.507249"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:33:56.509390"], ["updated_at", "2015-10-29 14:33:56.509390"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.515039"], ["updated_at", "2015-10-29 14:33:56.515039"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.522311"], ["updated_at", "2015-10-29 14:33:56.522311"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.6ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.533237"], ["updated_at", "2015-10-29 14:33:56.533237"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 14:33:56.535728"], ["updated_at", "2015-10-29 14:33:56.535728"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.542242"], ["updated_at", "2015-10-29 14:33:56.542242"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.545115"], ["updated_at", "2015-10-29 14:33:56.545115"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 14:33:56.549360"], ["updated_at", "2015-10-29 14:33:56.549360"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.563135"], ["updated_at", "2015-10-29 14:33:56.563135"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.573007"], ["updated_at", "2015-10-29 14:33:56.573007"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.578404"], ["updated_at", "2015-10-29 14:33:56.578404"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.584717"], ["updated_at", "2015-10-29 14:33:56.584717"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:33:56.586786"], ["updated_at", "2015-10-29 14:33:56.586786"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.589425"], ["updated_at", "2015-10-29 14:33:56.589425"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.591871"], ["updated_at", "2015-10-29 14:33:56.591871"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:33:56.593604"], ["updated_at", "2015-10-29 14:33:56.593604"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.597432"], ["updated_at", "2015-10-29 14:33:56.597432"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.603677"], ["updated_at", "2015-10-29 14:33:56.603677"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.609876"], ["updated_at", "2015-10-29 14:33:56.609876"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.5ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.616812"], ["updated_at", "2015-10-29 14:33:56.616812"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 14:33:56.618967"], ["updated_at", "2015-10-29 14:33:56.618967"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.621726"], ["updated_at", "2015-10-29 14:33:56.621726"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.624255"], ["updated_at", "2015-10-29 14:33:56.624255"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 14:33:56.626168"], ["updated_at", "2015-10-29 14:33:56.626168"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.628692"], ["updated_at", "2015-10-29 14:33:56.628692"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.630156"], ["updated_at", "2015-10-29 14:33:56.630156"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.632629"], ["updated_at", "2015-10-29 14:33:56.632629"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 2], ["attached_object_type", "Message"]] [1m[35mSQL (0.5ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.647915"], ["updated_at", "2015-10-29 14:33:56.647915"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 14:33:56.650402"], ["updated_at", "2015-10-29 14:33:56.650402"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.659651"], ["updated_at", "2015-10-29 14:33:56.659651"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.668447"], ["updated_at", "2015-10-29 14:33:56.668447"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.678561"], ["updated_at", "2015-10-29 14:33:56.678561"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.687114"], ["updated_at", "2015-10-29 14:33:56.687114"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:33:56.692743"], ["updated_at", "2015-10-29 14:33:56.692743"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.696633"], ["updated_at", "2015-10-29 14:33:56.696633"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.707009"], ["updated_at", "2015-10-29 14:33:56.707009"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:33:56.714287"], ["updated_at", "2015-10-29 14:33:56.714287"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.718003"], ["updated_at", "2015-10-29 14:33:56.718003"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.719650"], ["updated_at", "2015-10-29 14:33:56.719650"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.725540"], ["updated_at", "2015-10-29 14:33:56.725540"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 14:33:56.727511"], ["updated_at", "2015-10-29 14:33:56.727511"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.731308"], ["updated_at", "2015-10-29 14:33:56.731308"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.738767"], ["updated_at", "2015-10-29 14:33:56.738767"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 14:33:56.744550"], ["updated_at", "2015-10-29 14:33:56.744550"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.749553"], ["updated_at", "2015-10-29 14:33:56.749553"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:33:56.753002"], ["updated_at", "2015-10-29 14:33:56.753002"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.764157"], ["updated_at", "2015-10-29 14:33:56.764157"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:33:56.769813"], ["updated_at", "2015-10-29 14:33:56.769813"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.779019"], ["updated_at", "2015-10-29 14:33:56.779019"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.785694"], ["updated_at", "2015-10-29 14:33:56.785694"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:33:56.788854"], ["updated_at", "2015-10-29 14:33:56.788854"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.795029"], ["updated_at", "2015-10-29 14:33:56.795029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.799797"], ["updated_at", "2015-10-29 14:33:56.799797"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-29 14:33:56.806711"], ["updated_at", "2015-10-29 14:33:56.806711"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.809807"], ["updated_at", "2015-10-29 14:33:56.809807"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.815628"], ["updated_at", "2015-10-29 14:33:56.815628"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:33:56.832608"], ["updated_at", "2015-10-29 14:33:56.832608"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.835483"], ["updated_at", "2015-10-29 14:33:56.835483"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.843162"], ["updated_at", "2015-10-29 14:33:56.843162"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user35@sleede.com"], ["name", "user35"], ["created_at", "2015-10-29 14:33:56.849835"], ["updated_at", "2015-10-29 14:33:56.849835"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.856149"], ["updated_at", "2015-10-29 14:33:56.856149"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.865497"], ["updated_at", "2015-10-29 14:33:56.865497"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user36@sleede.com"], ["name", "user36"], ["created_at", "2015-10-29 14:33:56.874179"], ["updated_at", "2015-10-29 14:33:56.874179"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:33:56.876737"], ["updated_at", "2015-10-29 14:33:56.876737"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.879482"], ["updated_at", "2015-10-29 14:33:56.879482"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.887906"], ["updated_at", "2015-10-29 14:33:56.887906"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:33:56.893509"], ["updated_at", "2015-10-29 14:33:56.893509"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user37@sleede.com"], ["name", "user37"], ["created_at", "2015-10-29 14:33:56.904653"], ["updated_at", "2015-10-29 14:33:56.904653"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-29 14:33:56.908012"], ["updated_at", "2015-10-29 14:33:56.908012"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:33:56.910883"], ["updated_at", "2015-10-29 14:33:56.910883"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.7ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (1.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:33:56.932192"], ["updated_at", "2015-10-29 14:33:56.932192"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user38@sleede.com"], ["name", "user38"], ["created_at", "2015-10-29 14:33:56.937878"], ["updated_at", "2015-10-29 14:33:56.937878"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:33:56.949765"], ["updated_at", "2015-10-29 14:33:56.949765"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 14:37:39.677797"], ["updated_at", "2015-10-29 14:37:39.677797"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:39.695125"], ["updated_at", "2015-10-29 14:37:39.695125"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:39.732212"], ["updated_at", "2015-10-29 14:37:39.732212"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:39.757269"], ["updated_at", "2015-10-29 14:37:39.757269"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:39.762650"], ["updated_at", "2015-10-29 14:37:39.762650"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 21ms (Views: 14.1ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 14:37:39.804226"], ["updated_at", "2015-10-29 14:37:39.804226"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:39.809634"], ["updated_at", "2015-10-29 14:37:39.809634"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:39.816547"], ["updated_at", "2015-10-29 14:37:39.816547"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:39.819469"], ["updated_at", "2015-10-29 14:37:39.819469"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:39.821108"], ["updated_at", "2015-10-29 14:37:39.821108"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (1.7ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (26.0ms) Completed 200 OK in 28ms (Views: 24.3ms | ActiveRecord: 2.3ms) [1m[35m (1.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 14:37:39.870267"], ["updated_at", "2015-10-29 14:37:39.870267"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:39.876658"], ["updated_at", "2015-10-29 14:37:39.876658"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:39.881574"], ["updated_at", "2015-10-29 14:37:39.881574"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:39.886255"], ["updated_at", "2015-10-29 14:37:39.886255"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:39.888072"], ["updated_at", "2015-10-29 14:37:39.888072"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (5.2ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 14:37:39.916817"], ["updated_at", "2015-10-29 14:37:39.916817"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:39.919867"], ["updated_at", "2015-10-29 14:37:39.919867"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:39.941971"], ["updated_at", "2015-10-29 14:37:39.941971"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:39.948766"], ["updated_at", "2015-10-29 14:37:39.948766"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:39.952885"], ["updated_at", "2015-10-29 14:37:39.952885"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.5ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (7.1ms) Completed 200 OK in 15ms (Views: 8.1ms | ActiveRecord: 1.0ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 14:37:39.979023"], ["updated_at", "2015-10-29 14:37:39.979023"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:39.984582"], ["updated_at", "2015-10-29 14:37:39.984582"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:39.989094"], ["updated_at", "2015-10-29 14:37:39.989094"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:39.992278"], ["updated_at", "2015-10-29 14:37:39.992278"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.000518"], ["updated_at", "2015-10-29 14:37:40.000518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 14:37:40.186036"], ["updated_at", "2015-10-29 14:37:40.186036"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.188963"], ["updated_at", "2015-10-29 14:37:40.188963"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.192054"], ["updated_at", "2015-10-29 14:37:40.192054"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.201565"], ["updated_at", "2015-10-29 14:37:40.201565"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.203180"], ["updated_at", "2015-10-29 14:37:40.203180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 14:37:40.210975"], ["updated_at", "2015-10-29 14:37:40.210975"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.213420"], ["updated_at", "2015-10-29 14:37:40.213420"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.216013"], ["updated_at", "2015-10-29 14:37:40.216013"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.222134"], ["updated_at", "2015-10-29 14:37:40.222134"]] [1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.227556"], ["updated_at", "2015-10-29 14:37:40.227556"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.9ms) [1m[36mSQL (0.4ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 28.6ms Sent mail to user7@sleede.com (11.3ms) Date: Thu, 29 Oct 2015 15:37:40 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56322f3441dff_35163ffc98c601e057715@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 14:37:40.276683"], ["updated_at", "2015-10-29 14:37:40.276683"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.282636"], ["updated_at", "2015-10-29 14:37:40.282636"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.288717"], ["updated_at", "2015-10-29 14:37:40.288717"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.300100"], ["updated_at", "2015-10-29 14:37:40.300100"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.301828"], ["updated_at", "2015-10-29 14:37:40.301828"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.3ms Sent mail to user8@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:37:40 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56322f344a628_35163ffc98c601e0578d0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 14:37:40.309787"], ["updated_at", "2015-10-29 14:37:40.309787"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.315834"], ["updated_at", "2015-10-29 14:37:40.315834"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.325372"], ["updated_at", "2015-10-29 14:37:40.325372"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.343548"], ["updated_at", "2015-10-29 14:37:40.343548"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.345447"], ["updated_at", "2015-10-29 14:37:40.345447"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 3.2ms Sent mail to user9@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 15:37:40 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56322f3455e79_35163ffc98c601e0579de@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 14:37:40.356198"], ["updated_at", "2015-10-29 14:37:40.356198"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (4.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.359446"], ["updated_at", "2015-10-29 14:37:40.359446"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.6ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.369890"], ["updated_at", "2015-10-29 14:37:40.369890"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.372701"], ["updated_at", "2015-10-29 14:37:40.372701"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.377331"], ["updated_at", "2015-10-29 14:37:40.377331"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 2.3ms Sent mail to user10@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 15:37:40 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56322f345da2f_35163ffc98c601e0580c5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.387549"], ["updated_at", "2015-10-29 14:37:40.387549"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 14:37:40.396632"], ["updated_at", "2015-10-29 14:37:40.396632"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.415028"], ["updated_at", "2015-10-29 14:37:40.415028"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.427164"], ["updated_at", "2015-10-29 14:37:40.427164"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.432073"], ["updated_at", "2015-10-29 14:37:40.432073"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.443339"], ["updated_at", "2015-10-29 14:37:40.443339"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 14:37:40.445480"], ["updated_at", "2015-10-29 14:37:40.445480"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.452330"], ["updated_at", "2015-10-29 14:37:40.452330"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.455082"], ["updated_at", "2015-10-29 14:37:40.455082"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 14:37:40.457210"], ["updated_at", "2015-10-29 14:37:40.457210"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.463030"], ["updated_at", "2015-10-29 14:37:40.463030"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.468380"], ["updated_at", "2015-10-29 14:37:40.468380"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.470696"], ["updated_at", "2015-10-29 14:37:40.470696"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.478032"], ["updated_at", "2015-10-29 14:37:40.478032"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 14:37:40.481518"], ["updated_at", "2015-10-29 14:37:40.481518"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.489241"], ["updated_at", "2015-10-29 14:37:40.489241"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.498917"], ["updated_at", "2015-10-29 14:37:40.498917"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 14:37:40.506421"], ["updated_at", "2015-10-29 14:37:40.506421"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.516011"], ["updated_at", "2015-10-29 14:37:40.516011"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.519312"], ["updated_at", "2015-10-29 14:37:40.519312"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.521400"], ["updated_at", "2015-10-29 14:37:40.521400"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.527767"], ["updated_at", "2015-10-29 14:37:40.527767"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 14:37:40.530233"], ["updated_at", "2015-10-29 14:37:40.530233"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.533439"], ["updated_at", "2015-10-29 14:37:40.533439"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.540634"], ["updated_at", "2015-10-29 14:37:40.540634"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.547047"], ["updated_at", "2015-10-29 14:37:40.547047"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_by: processed outbound mail in 1.9ms Sent mail to user16@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 15:37:40 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <56322f3486dc4_35163ffc98c601e0581b1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.556815"], ["updated_at", "2015-10-29 14:37:40.556815"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 14:37:40.561176"], ["updated_at", "2015-10-29 14:37:40.561176"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.567527"], ["updated_at", "2015-10-29 14:37:40.567527"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.575909"], ["updated_at", "2015-10-29 14:37:40.575909"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.581852"], ["updated_at", "2015-10-29 14:37:40.581852"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_by", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] NotificationsMailer#send_mail_by: processed outbound mail in 3.2ms [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Sent mail to user17@sleede.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Date: Thu, 29 Oct 2015 15:37:40 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <56322f34968b0_35163ffc98c601e0582d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [3bf132e4-07b6-4e5a-9d11-b8b5cd5fc06e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.21ms [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.620874"], ["updated_at", "2015-10-29 14:37:40.620874"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 14:37:40.623580"], ["updated_at", "2015-10-29 14:37:40.623580"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.628355"], ["updated_at", "2015-10-29 14:37:40.628355"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.636265"], ["updated_at", "2015-10-29 14:37:40.636265"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.650158"], ["updated_at", "2015-10-29 14:37:40.650158"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 14:37:40.654482"], ["updated_at", "2015-10-29 14:37:40.654482"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.661499"], ["updated_at", "2015-10-29 14:37:40.661499"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.666465"], ["updated_at", "2015-10-29 14:37:40.666465"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.679451"], ["updated_at", "2015-10-29 14:37:40.679451"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 14:37:40.684873"], ["updated_at", "2015-10-29 14:37:40.684873"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.690700"], ["updated_at", "2015-10-29 14:37:40.690700"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.696558"], ["updated_at", "2015-10-29 14:37:40.696558"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 14:37:40.700538"], ["updated_at", "2015-10-29 14:37:40.700538"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.706032"], ["updated_at", "2015-10-29 14:37:40.706032"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.709509"], ["updated_at", "2015-10-29 14:37:40.709509"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.712168"], ["updated_at", "2015-10-29 14:37:40.712168"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.719270"], ["updated_at", "2015-10-29 14:37:40.719270"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 14:37:40.721992"], ["updated_at", "2015-10-29 14:37:40.721992"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.728353"], ["updated_at", "2015-10-29 14:37:40.728353"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.733223"], ["updated_at", "2015-10-29 14:37:40.733223"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 14:37:40.735923"], ["updated_at", "2015-10-29 14:37:40.735923"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.740195"], ["updated_at", "2015-10-29 14:37:40.740195"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.745741"], ["updated_at", "2015-10-29 14:37:40.745741"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.752582"], ["updated_at", "2015-10-29 14:37:40.752582"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.757445"], ["updated_at", "2015-10-29 14:37:40.757445"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 14:37:40.759612"], ["updated_at", "2015-10-29 14:37:40.759612"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.764866"], ["updated_at", "2015-10-29 14:37:40.764866"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.771054"], ["updated_at", "2015-10-29 14:37:40.771054"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 14:37:40.772850"], ["updated_at", "2015-10-29 14:37:40.772850"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.777117"], ["updated_at", "2015-10-29 14:37:40.777117"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.782836"], ["updated_at", "2015-10-29 14:37:40.782836"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:40.787057"], ["updated_at", "2015-10-29 14:37:40.787057"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 2], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.798947"], ["updated_at", "2015-10-29 14:37:40.798947"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 14:37:40.800519"], ["updated_at", "2015-10-29 14:37:40.800519"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.804059"], ["updated_at", "2015-10-29 14:37:40.804059"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.814107"], ["updated_at", "2015-10-29 14:37:40.814107"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.827254"], ["updated_at", "2015-10-29 14:37:40.827254"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.836169"], ["updated_at", "2015-10-29 14:37:40.836169"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 14:37:40.839607"], ["updated_at", "2015-10-29 14:37:40.839607"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.846636"], ["updated_at", "2015-10-29 14:37:40.846636"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.852278"], ["updated_at", "2015-10-29 14:37:40.852278"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 14:37:40.854156"], ["updated_at", "2015-10-29 14:37:40.854156"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.857269"], ["updated_at", "2015-10-29 14:37:40.857269"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.862782"], ["updated_at", "2015-10-29 14:37:40.862782"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.872912"], ["updated_at", "2015-10-29 14:37:40.872912"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 14:37:40.874905"], ["updated_at", "2015-10-29 14:37:40.874905"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.881863"], ["updated_at", "2015-10-29 14:37:40.881863"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.888227"], ["updated_at", "2015-10-29 14:37:40.888227"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 14:37:40.890583"], ["updated_at", "2015-10-29 14:37:40.890583"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.898457"], ["updated_at", "2015-10-29 14:37:40.898457"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 14:37:40.903009"], ["updated_at", "2015-10-29 14:37:40.903009"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.910136"], ["updated_at", "2015-10-29 14:37:40.910136"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 14:37:40.913283"], ["updated_at", "2015-10-29 14:37:40.913283"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.924507"], ["updated_at", "2015-10-29 14:37:40.924507"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.933720"], ["updated_at", "2015-10-29 14:37:40.933720"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 14:37:40.938150"], ["updated_at", "2015-10-29 14:37:40.938150"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:40.941480"], ["updated_at", "2015-10-29 14:37:40.941480"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:40.943416"], ["updated_at", "2015-10-29 14:37:40.943416"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-29 14:37:40.951562"], ["updated_at", "2015-10-29 14:37:40.951562"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.954521"], ["updated_at", "2015-10-29 14:37:40.954521"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.963392"], ["updated_at", "2015-10-29 14:37:40.963392"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 14:37:40.972743"], ["updated_at", "2015-10-29 14:37:40.972743"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (2.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:40.983911"], ["updated_at", "2015-10-29 14:37:40.983911"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:40.993306"], ["updated_at", "2015-10-29 14:37:40.993306"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user35@sleede.com"], ["name", "user35"], ["created_at", "2015-10-29 14:37:41.004030"], ["updated_at", "2015-10-29 14:37:41.004030"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:41.008329"], ["updated_at", "2015-10-29 14:37:41.008329"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:41.014898"], ["updated_at", "2015-10-29 14:37:41.014898"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.8ms)[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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user36@sleede.com"], ["name", "user36"], ["created_at", "2015-10-29 14:37:41.034674"], ["updated_at", "2015-10-29 14:37:41.034674"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 14:37:41.037464"], ["updated_at", "2015-10-29 14:37:41.037464"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:41.042177"], ["updated_at", "2015-10-29 14:37:41.042177"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:41.048305"], ["updated_at", "2015-10-29 14:37:41.048305"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 14:37:41.051910"], ["updated_at", "2015-10-29 14:37:41.051910"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user37@sleede.com"], ["name", "user37"], ["created_at", "2015-10-29 14:37:41.064815"], ["updated_at", "2015-10-29 14:37:41.064815"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-29 14:37:41.067962"], ["updated_at", "2015-10-29 14:37:41.067962"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 14:37:41.070488"], ["updated_at", "2015-10-29 14:37:41.070488"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 14:37:41.093520"], ["updated_at", "2015-10-29 14:37:41.093520"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user38@sleede.com"], ["name", "user38"], ["created_at", "2015-10-29 14:37:41.099758"], ["updated_at", "2015-10-29 14:37:41.099758"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 14:37:41.104910"], ["updated_at", "2015-10-29 14:37:41.104910"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (1.2ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35m (1.6ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m [1m[35m (3.3ms)[0m CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029150402') [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029150400')[0m [1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029150401') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]] [1m[35m (1.0ms)[0m commit transaction Migrating to CreateMessages (20150213152846) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]] [1m[35m (0.7ms)[0m commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.3ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.5ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (0.2ms)[0m [1mCREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]] [1m[36m (1.1ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotifications (20151029113107) [1m[35m (0.1ms)[0m begin transaction [1m[36m (1.0ms)[0m [1mCREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]] [1m[36m (1.5ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotificationTypes (20151029113122) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.6ms)[0m [1mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113122"]] [1m[35m (1.1ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.4ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_wupee_notification_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_wupee_notification_types_on_name' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625) [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]] [1m[35m (1.4ms)[0m commit transaction Migrating to CreateMessages (20150213152846) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.8ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]] [1m[35m (1.2ms)[0m commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101) [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (1.1ms)[0m CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.7ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (1.0ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (0.2ms)[0m [1mCREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]] [1m[36m (2.0ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotifications (20151029113107) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.7ms)[0m [1mCREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]] [1m[36m (1.0ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotificationTypes (20151029113122) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.5ms)[0m [1mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113122"]] [1m[35m (2.0ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' [1m[36m (0.7ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [0m [1m[35m (0.5ms)[0m SELECT sql FROM sqlite_master WHERE name='index_wupee_notification_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_wupee_notification_types_on_name' AND type='index' [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 15:52:14.303822"], ["updated_at", "2015-10-29 15:52:14.303822"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.326163"], ["updated_at", "2015-10-29 15:52:14.326163"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.4ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.358996"], ["updated_at", "2015-10-29 15:52:14.358996"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.379853"], ["updated_at", "2015-10-29 15:52:14.379853"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.383364"], ["updated_at", "2015-10-29 15:52:14.383364"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 20ms (Views: 12.7ms | ActiveRecord: 0.0ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 15:52:14.423004"], ["updated_at", "2015-10-29 15:52:14.423004"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:14.426234"], ["updated_at", "2015-10-29 15:52:14.426234"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.432675"], ["updated_at", "2015-10-29 15:52:14.432675"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.439221"], ["updated_at", "2015-10-29 15:52:14.439221"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.442844"], ["updated_at", "2015-10-29 15:52:14.442844"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (15.3ms) Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 15:52:14.472684"], ["updated_at", "2015-10-29 15:52:14.472684"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:14.476285"], ["updated_at", "2015-10-29 15:52:14.476285"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.488871"], ["updated_at", "2015-10-29 15:52:14.488871"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.497397"], ["updated_at", "2015-10-29 15:52:14.497397"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.501048"], ["updated_at", "2015-10-29 15:52:14.501048"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (4.8ms) Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 15:52:14.527928"], ["updated_at", "2015-10-29 15:52:14.527928"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:14.530996"], ["updated_at", "2015-10-29 15:52:14.530996"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.535998"], ["updated_at", "2015-10-29 15:52:14.535998"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.542469"], ["updated_at", "2015-10-29 15:52:14.542469"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.545551"], ["updated_at", "2015-10-29 15:52:14.545551"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.4ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (11.5ms) Completed 200 OK in 18ms (Views: 12.5ms | ActiveRecord: 0.8ms) [1m[36m (2.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 15:52:14.577437"], ["updated_at", "2015-10-29 15:52:14.577437"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.581346"], ["updated_at", "2015-10-29 15:52:14.581346"]] [1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.593565"], ["updated_at", "2015-10-29 15:52:14.593565"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.604128"], ["updated_at", "2015-10-29 15:52:14.604128"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.610172"], ["updated_at", "2015-10-29 15:52:14.610172"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 15:52:14.810887"], ["updated_at", "2015-10-29 15:52:14.810887"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:14.813540"], ["updated_at", "2015-10-29 15:52:14.813540"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.816102"], ["updated_at", "2015-10-29 15:52:14.816102"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.820756"], ["updated_at", "2015-10-29 15:52:14.820756"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.826359"], ["updated_at", "2015-10-29 15:52:14.826359"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 15:52:14.838829"], ["updated_at", "2015-10-29 15:52:14.838829"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:14.848044"], ["updated_at", "2015-10-29 15:52:14.848044"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.855329"], ["updated_at", "2015-10-29 15:52:14.855329"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (1.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.863822"], ["updated_at", "2015-10-29 15:52:14.863822"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.867171"], ["updated_at", "2015-10-29 15:52:14.867171"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (4.4ms) [1m[36mSQL (0.4ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 28.9ms Sent mail to user7@sleede.com (11.1ms) Date: Thu, 29 Oct 2015 16:52:14 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563240aedd617_39153feff485e1d8436f0@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 15:52:14.914780"], ["updated_at", "2015-10-29 15:52:14.914780"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:14.916834"], ["updated_at", "2015-10-29 15:52:14.916834"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.920039"], ["updated_at", "2015-10-29 15:52:14.920039"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.928701"], ["updated_at", "2015-10-29 15:52:14.928701"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.932278"], ["updated_at", "2015-10-29 15:52:14.932278"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.8ms Sent mail to user8@sleede.com (2.0ms) Date: Thu, 29 Oct 2015 16:52:14 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563240aee5292_39153feff485e1d8437b3@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 15:52:14.943215"], ["updated_at", "2015-10-29 15:52:14.943215"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:14.946748"], ["updated_at", "2015-10-29 15:52:14.946748"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.951873"], ["updated_at", "2015-10-29 15:52:14.951873"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.955988"], ["updated_at", "2015-10-29 15:52:14.955988"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:14.962184"], ["updated_at", "2015-10-29 15:52:14.962184"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.6ms Sent mail to user9@sleede.com (1.4ms) Date: Thu, 29 Oct 2015 16:52:14 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563240aeec90b_39153feff485e1d84388c@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 15:52:14.972965"], ["updated_at", "2015-10-29 15:52:14.972965"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:14.978684"], ["updated_at", "2015-10-29 15:52:14.978684"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:14.988908"], ["updated_at", "2015-10-29 15:52:14.988908"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:14.998112"], ["updated_at", "2015-10-29 15:52:14.998112"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.001847"], ["updated_at", "2015-10-29 15:52:15.001847"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.9ms Sent mail to user10@sleede.com (1.7ms) Date: Thu, 29 Oct 2015 16:52:15 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563240af214d_39153feff485e1d843952@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.012344"], ["updated_at", "2015-10-29 15:52:15.012344"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 15:52:15.018128"], ["updated_at", "2015-10-29 15:52:15.018128"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.025436"], ["updated_at", "2015-10-29 15:52:15.025436"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.033444"], ["updated_at", "2015-10-29 15:52:15.033444"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.037879"], ["updated_at", "2015-10-29 15:52:15.037879"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.054921"], ["updated_at", "2015-10-29 15:52:15.054921"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 15:52:15.057217"], ["updated_at", "2015-10-29 15:52:15.057217"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.061500"], ["updated_at", "2015-10-29 15:52:15.061500"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.068752"], ["updated_at", "2015-10-29 15:52:15.068752"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 15:52:15.071281"], ["updated_at", "2015-10-29 15:52:15.071281"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.077333"], ["updated_at", "2015-10-29 15:52:15.077333"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.079522"], ["updated_at", "2015-10-29 15:52:15.079522"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.083003"], ["updated_at", "2015-10-29 15:52:15.083003"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.090070"], ["updated_at", "2015-10-29 15:52:15.090070"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 15:52:15.094124"], ["updated_at", "2015-10-29 15:52:15.094124"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.103880"], ["updated_at", "2015-10-29 15:52:15.103880"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.109345"], ["updated_at", "2015-10-29 15:52:15.109345"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 15:52:15.118264"], ["updated_at", "2015-10-29 15:52:15.118264"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.126620"], ["updated_at", "2015-10-29 15:52:15.126620"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.130640"], ["updated_at", "2015-10-29 15:52:15.130640"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.134352"], ["updated_at", "2015-10-29 15:52:15.134352"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.138615"], ["updated_at", "2015-10-29 15:52:15.138615"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 15:52:15.141046"], ["updated_at", "2015-10-29 15:52:15.141046"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.145239"], ["updated_at", "2015-10-29 15:52:15.145239"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.152158"], ["updated_at", "2015-10-29 15:52:15.152158"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.157384"], ["updated_at", "2015-10-29 15:52:15.157384"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms Sent mail to user16@sleede.com (3.0ms) Date: Thu, 29 Oct 2015 16:52:15 +0100 From: contact@sleede.com To: user16@sleede.com Message-ID: <563240af27ab7_39153feff485e1d844085@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser16
message body
[1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.169757"], ["updated_at", "2015-10-29 15:52:15.169757"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 15:52:15.172053"], ["updated_at", "2015-10-29 15:52:15.172053"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.177257"], ["updated_at", "2015-10-29 15:52:15.177257"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.184815"], ["updated_at", "2015-10-29 15:52:15.184815"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.190363"], ["updated_at", "2015-10-29 15:52:15.190363"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a1fcf984-17f6-479a-9694-5002e4f12848) to Inline(mailers) with arguments: "NotificationsMailer", "send_mail_for", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "NotificationsMailer", "send_mail_for", "deliver_now", gid://dummy/Wupee::Notification/1 [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] NotificationsMailer#send_mail_for: processed outbound mail in 5.2ms [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Sent mail to user17@sleede.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Date: Thu, 29 Oct 2015 16:52:15 +0100 From: contact@sleede.com To: user17@sleede.com Message-ID: <563240af38bf6_39153feff485e1d8441d9@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser17
message body
[ActiveJob] [ActionMailer::DeliveryJob] [a1fcf984-17f6-479a-9694-5002e4f12848] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.42ms [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.236519"], ["updated_at", "2015-10-29 15:52:15.236519"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 15:52:15.238574"], ["updated_at", "2015-10-29 15:52:15.238574"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.241909"], ["updated_at", "2015-10-29 15:52:15.241909"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.248693"], ["updated_at", "2015-10-29 15:52:15.248693"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.256405"], ["updated_at", "2015-10-29 15:52:15.256405"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 15:52:15.258857"], ["updated_at", "2015-10-29 15:52:15.258857"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.264051"], ["updated_at", "2015-10-29 15:52:15.264051"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.271819"], ["updated_at", "2015-10-29 15:52:15.271819"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.278081"], ["updated_at", "2015-10-29 15:52:15.278081"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 15:52:15.282552"], ["updated_at", "2015-10-29 15:52:15.282552"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.285301"], ["updated_at", "2015-10-29 15:52:15.285301"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.290422"], ["updated_at", "2015-10-29 15:52:15.290422"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 15:52:15.295750"], ["updated_at", "2015-10-29 15:52:15.295750"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.304048"], ["updated_at", "2015-10-29 15:52:15.304048"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.310682"], ["updated_at", "2015-10-29 15:52:15.310682"]] [1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.321551"], ["updated_at", "2015-10-29 15:52:15.321551"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.327556"], ["updated_at", "2015-10-29 15:52:15.327556"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 15:52:15.329739"], ["updated_at", "2015-10-29 15:52:15.329739"]] [1m[35m (0.7ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.348967"], ["updated_at", "2015-10-29 15:52:15.348967"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.353883"], ["updated_at", "2015-10-29 15:52:15.353883"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 15:52:15.360629"], ["updated_at", "2015-10-29 15:52:15.360629"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.366595"], ["updated_at", "2015-10-29 15:52:15.366595"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.371142"], ["updated_at", "2015-10-29 15:52:15.371142"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.375171"], ["updated_at", "2015-10-29 15:52:15.375171"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.382792"], ["updated_at", "2015-10-29 15:52:15.382792"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 15:52:15.385391"], ["updated_at", "2015-10-29 15:52:15.385391"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (1.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.391174"], ["updated_at", "2015-10-29 15:52:15.391174"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.402419"], ["updated_at", "2015-10-29 15:52:15.402419"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 15:52:15.408191"], ["updated_at", "2015-10-29 15:52:15.408191"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (2.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.419145"], ["updated_at", "2015-10-29 15:52:15.419145"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.424035"], ["updated_at", "2015-10-29 15:52:15.424035"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.426841"], ["updated_at", "2015-10-29 15:52:15.426841"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 2], ["attached_object_type", "Message"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 2], ["receiver_type", "User"]] [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.439520"], ["updated_at", "2015-10-29 15:52:15.439520"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 15:52:15.445826"], ["updated_at", "2015-10-29 15:52:15.445826"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.455413"], ["updated_at", "2015-10-29 15:52:15.455413"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.463203"], ["updated_at", "2015-10-29 15:52:15.463203"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("notification_type_id", "attached_object_id", "attached_object_type", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["notification_type_id", 1], ["attached_object_id", 1], ["attached_object_type", "Message"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.469715"], ["updated_at", "2015-10-29 15:52:15.469715"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.478643"], ["updated_at", "2015-10-29 15:52:15.478643"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 15:52:15.483498"], ["updated_at", "2015-10-29 15:52:15.483498"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.491259"], ["updated_at", "2015-10-29 15:52:15.491259"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.501612"], ["updated_at", "2015-10-29 15:52:15.501612"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (3.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-29 15:52:15.506083"], ["updated_at", "2015-10-29 15:52:15.506083"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.517758"], ["updated_at", "2015-10-29 15:52:15.517758"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.519497"], ["updated_at", "2015-10-29 15:52:15.519497"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.523623"], ["updated_at", "2015-10-29 15:52:15.523623"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-29 15:52:15.526679"], ["updated_at", "2015-10-29 15:52:15.526679"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.538698"], ["updated_at", "2015-10-29 15:52:15.538698"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.546537"], ["updated_at", "2015-10-29 15:52:15.546537"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-29 15:52:15.559794"], ["updated_at", "2015-10-29 15:52:15.559794"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.566828"], ["updated_at", "2015-10-29 15:52:15.566828"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 15:52:15.568669"], ["updated_at", "2015-10-29 15:52:15.568669"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.575669"], ["updated_at", "2015-10-29 15:52:15.575669"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-29 15:52:15.578358"], ["updated_at", "2015-10-29 15:52:15.578358"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.588000"], ["updated_at", "2015-10-29 15:52:15.588000"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.592437"], ["updated_at", "2015-10-29 15:52:15.592437"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-29 15:52:15.598371"], ["updated_at", "2015-10-29 15:52:15.598371"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.601209"], ["updated_at", "2015-10-29 15:52:15.601209"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.602901"], ["updated_at", "2015-10-29 15:52:15.602901"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-29 15:52:15.615840"], ["updated_at", "2015-10-29 15:52:15.615840"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (4.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.620392"], ["updated_at", "2015-10-29 15:52:15.620392"]] [1m[35m (1.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.643814"], ["updated_at", "2015-10-29 15:52:15.643814"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user34@sleede.com"], ["name", "user34"], ["created_at", "2015-10-29 15:52:15.652925"], ["updated_at", "2015-10-29 15:52:15.652925"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.657584"], ["updated_at", "2015-10-29 15:52:15.657584"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.666977"], ["updated_at", "2015-10-29 15:52:15.666977"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (3.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user35@sleede.com"], ["name", "user35"], ["created_at", "2015-10-29 15:52:15.688956"], ["updated_at", "2015-10-29 15:52:15.688956"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.698373"], ["updated_at", "2015-10-29 15:52:15.698373"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.708290"], ["updated_at", "2015-10-29 15:52:15.708290"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user36@sleede.com"], ["name", "user36"], ["created_at", "2015-10-29 15:52:15.725900"], ["updated_at", "2015-10-29 15:52:15.725900"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 15:52:15.730214"], ["updated_at", "2015-10-29 15:52:15.730214"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.734295"], ["updated_at", "2015-10-29 15:52:15.734295"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.738266"], ["updated_at", "2015-10-29 15:52:15.738266"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 15:52:15.740196"], ["updated_at", "2015-10-29 15:52:15.740196"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user37@sleede.com"], ["name", "user37"], ["created_at", "2015-10-29 15:52:15.765807"], ["updated_at", "2015-10-29 15:52:15.765807"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-29 15:52:15.768224"], ["updated_at", "2015-10-29 15:52:15.768224"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 15:52:15.777340"], ["updated_at", "2015-10-29 15:52:15.777340"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (1.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 15:52:15.810782"], ["updated_at", "2015-10-29 15:52:15.810782"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user38@sleede.com"], ["name", "user38"], ["created_at", "2015-10-29 15:52:15.819985"], ["updated_at", "2015-10-29 15:52:15.819985"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 15:52:15.827109"], ["updated_at", "2015-10-29 15:52:15.827109"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (2.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 rollback transaction [1m[36m (3.1ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.6ms)[0m [1mCREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.3ms)[0m select sqlite_version(*) [1m[36m (2.8ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.3ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (1.6ms)[0m [1mCREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m [1m[35m (6.8ms)[0m CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (2.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (3.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029155724') [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029155722')[0m [1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029155723') [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (6.5ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (2.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (2.8ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (1.4ms)[0m [1mCREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m [1m[35m (1.1ms)[0m CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029164358') [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029164356')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151029164357') [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (9.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625) [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]] [1m[35m (1.3ms)[0m commit transaction Migrating to CreateMessages (20150213152846) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (2.0ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]] [1m[35m (0.6ms)[0m commit transaction Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.8ms)[0m CREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.1ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.6ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (0.2ms)[0m [1mCREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113101"]] [1m[36m (1.7ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotifications (20151029113107) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.6ms)[0m [1mCREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113107"]] [1m[36m (4.7ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotificationTypes (20151029113122) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.5ms)[0m [1mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name") [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113122"]] [1m[35m (1.2ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_wupee_notification_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_wupee_notification_types_on_name' AND type='index' [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 16:45:20.744672"], ["updated_at", "2015-10-29 16:45:20.744672"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:20.767173"], ["updated_at", "2015-10-29 16:45:20.767173"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:20.795191"], ["updated_at", "2015-10-29 16:45:20.795191"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:20.806906"], ["updated_at", "2015-10-29 16:45:20.806906"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:20.809493"], ["updated_at", "2015-10-29 16:45:20.809493"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 21ms (Views: 12.8ms | ActiveRecord: 0.0ms) [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.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 16:45:20.849936"], ["updated_at", "2015-10-29 16:45:20.849936"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:20.855441"], ["updated_at", "2015-10-29 16:45:20.855441"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:20.861945"], ["updated_at", "2015-10-29 16:45:20.861945"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:20.869430"], ["updated_at", "2015-10-29 16:45:20.869430"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:20.873742"], ["updated_at", "2015-10-29 16:45:20.873742"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (1.5ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.6ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (16.5ms) Completed 200 OK in 18ms (Views: 15.1ms | ActiveRecord: 1.9ms) [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 16:45:20.904149"], ["updated_at", "2015-10-29 16:45:20.904149"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:20.914088"], ["updated_at", "2015-10-29 16:45:20.914088"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:20.920894"], ["updated_at", "2015-10-29 16:45:20.920894"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:20.923310"], ["updated_at", "2015-10-29 16:45:20.923310"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:20.924810"], ["updated_at", "2015-10-29 16:45:20.924810"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (10.9ms) Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.5ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 16:45:20.954997"], ["updated_at", "2015-10-29 16:45:20.954997"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:20.958016"], ["updated_at", "2015-10-29 16:45:20.958016"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:20.966854"], ["updated_at", "2015-10-29 16:45:20.966854"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:20.971813"], ["updated_at", "2015-10-29 16:45:20.971813"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:20.976523"], ["updated_at", "2015-10-29 16:45:20.976523"]] [1m[35m (1.5ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 16:45:21.008419"], ["updated_at", "2015-10-29 16:45:21.008419"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.011589"], ["updated_at", "2015-10-29 16:45:21.011589"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.028410"], ["updated_at", "2015-10-29 16:45:21.028410"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.039494"], ["updated_at", "2015-10-29 16:45:21.039494"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.041117"], ["updated_at", "2015-10-29 16:45:21.041117"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 8ms (ActiveRecord: 0.5ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 16:45:21.230938"], ["updated_at", "2015-10-29 16:45:21.230938"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.233395"], ["updated_at", "2015-10-29 16:45:21.233395"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.236044"], ["updated_at", "2015-10-29 16:45:21.236044"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.241502"], ["updated_at", "2015-10-29 16:45:21.241502"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.245486"], ["updated_at", "2015-10-29 16:45:21.245486"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 16:45:21.254486"], ["updated_at", "2015-10-29 16:45:21.254486"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.256954"], ["updated_at", "2015-10-29 16:45:21.256954"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (1.6ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.265931"], ["updated_at", "2015-10-29 16:45:21.265931"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.270299"], ["updated_at", "2015-10-29 16:45:21.270299"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.272012"], ["updated_at", "2015-10-29 16:45:21.272012"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 29.7ms Sent mail to user7@sleede.com (7.6ms) Date: Thu, 29 Oct 2015 17:45:21 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56324d214b9a6_3bda3fda058601e0404f1@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 16:45:21.322972"], ["updated_at", "2015-10-29 16:45:21.322972"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.330604"], ["updated_at", "2015-10-29 16:45:21.330604"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.336394"], ["updated_at", "2015-10-29 16:45:21.336394"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.338780"], ["updated_at", "2015-10-29 16:45:21.338780"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.340210"], ["updated_at", "2015-10-29 16:45:21.340210"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user8@sleede.com (1.2ms) Date: Thu, 29 Oct 2015 17:45:21 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56324d2153c0e_3bda3fda058601e040540@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 16:45:21.351196"], ["updated_at", "2015-10-29 16:45:21.351196"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.359372"], ["updated_at", "2015-10-29 16:45:21.359372"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.367192"], ["updated_at", "2015-10-29 16:45:21.367192"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.372364"], ["updated_at", "2015-10-29 16:45:21.372364"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.376574"], ["updated_at", "2015-10-29 16:45:21.376574"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user9@sleede.com (5.5ms) Date: Thu, 29 Oct 2015 17:45:21 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56324d215d649_3bda3fda058601e04061@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (1.0ms)[0m rollback transaction [1m[36m (1.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 16:45:21.393519"], ["updated_at", "2015-10-29 16:45:21.393519"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.405510"], ["updated_at", "2015-10-29 16:45:21.405510"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.408500"], ["updated_at", "2015-10-29 16:45:21.408500"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.411067"], ["updated_at", "2015-10-29 16:45:21.411067"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.420530"], ["updated_at", "2015-10-29 16:45:21.420530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (2.2ms) Date: Thu, 29 Oct 2015 17:45:21 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56324d2167812_3bda3fda058601e04077f@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.432307"], ["updated_at", "2015-10-29 16:45:21.432307"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 16:45:21.435486"], ["updated_at", "2015-10-29 16:45:21.435486"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.442085"], ["updated_at", "2015-10-29 16:45:21.442085"]] [1m[36m (1.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (1.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.454253"], ["updated_at", "2015-10-29 16:45:21.454253"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.463530"], ["updated_at", "2015-10-29 16:45:21.463530"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.475567"], ["updated_at", "2015-10-29 16:45:21.475567"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 16:45:21.477309"], ["updated_at", "2015-10-29 16:45:21.477309"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (9.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.491643"], ["updated_at", "2015-10-29 16:45:21.491643"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.502477"], ["updated_at", "2015-10-29 16:45:21.502477"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 16:45:21.506512"], ["updated_at", "2015-10-29 16:45:21.506512"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:45:21.509064"], ["updated_at", "2015-10-29 16:45:21.509064"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.510471"], ["updated_at", "2015-10-29 16:45:21.510471"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.512126"], ["updated_at", "2015-10-29 16:45:21.512126"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.523563"], ["updated_at", "2015-10-29 16:45:21.523563"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 16:45:21.528321"], ["updated_at", "2015-10-29 16:45:21.528321"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.536502"], ["updated_at", "2015-10-29 16:45:21.536502"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.539331"], ["updated_at", "2015-10-29 16:45:21.539331"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 16:45:21.541055"], ["updated_at", "2015-10-29 16:45:21.541055"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:45:21.543299"], ["updated_at", "2015-10-29 16:45:21.543299"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.545368"], ["updated_at", "2015-10-29 16:45:21.545368"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.557758"], ["updated_at", "2015-10-29 16:45:21.557758"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.563292"], ["updated_at", "2015-10-29 16:45:21.563292"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 16:45:21.567373"], ["updated_at", "2015-10-29 16:45:21.567373"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.572820"], ["updated_at", "2015-10-29 16:45:21.572820"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.577788"], ["updated_at", "2015-10-29 16:45:21.577788"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.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.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.601098"], ["updated_at", "2015-10-29 16:45:21.601098"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 16:45:21.603311"], ["updated_at", "2015-10-29 16:45:21.603311"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.610778"], ["updated_at", "2015-10-29 16:45:21.610778"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (2.7ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.619690"], ["updated_at", "2015-10-29 16:45:21.619690"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.627624"], ["updated_at", "2015-10-29 16:45:21.627624"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 16:45:21.631567"], ["updated_at", "2015-10-29 16:45:21.631567"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.9ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.655647"], ["updated_at", "2015-10-29 16:45:21.655647"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.659787"], ["updated_at", "2015-10-29 16:45:21.659787"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 16:45:21.661931"], ["updated_at", "2015-10-29 16:45:21.661931"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:45:21.669195"], ["updated_at", "2015-10-29 16:45:21.669195"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.670943"], ["updated_at", "2015-10-29 16:45:21.670943"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.672821"], ["updated_at", "2015-10-29 16:45:21.672821"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.678950"], ["updated_at", "2015-10-29 16:45:21.678950"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 16:45:21.687917"], ["updated_at", "2015-10-29 16:45:21.687917"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.694032"], ["updated_at", "2015-10-29 16:45:21.694032"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.706691"], ["updated_at", "2015-10-29 16:45:21.706691"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 16:45:21.711709"], ["updated_at", "2015-10-29 16:45:21.711709"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:45:21.718970"], ["updated_at", "2015-10-29 16:45:21.718970"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:45:21.720691"], ["updated_at", "2015-10-29 16:45:21.720691"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.722512"], ["updated_at", "2015-10-29 16:45:21.722512"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 16:45:21.726194"], ["updated_at", "2015-10-29 16:45:21.726194"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.729817"], ["updated_at", "2015-10-29 16:45:21.729817"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.742781"], ["updated_at", "2015-10-29 16:45:21.742781"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (1.0ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 16:45:21.757624"], ["updated_at", "2015-10-29 16:45:21.757624"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.760625"], ["updated_at", "2015-10-29 16:45:21.760625"]] [1m[35m (0.8ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.773046"], ["updated_at", "2015-10-29 16:45:21.773046"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 16:45:21.784415"], ["updated_at", "2015-10-29 16:45:21.784415"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.788331"], ["updated_at", "2015-10-29 16:45:21.788331"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.793504"], ["updated_at", "2015-10-29 16:45:21.793504"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (1.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 SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 16:45:21.812006"], ["updated_at", "2015-10-29 16:45:21.812006"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:45:21.819080"], ["updated_at", "2015-10-29 16:45:21.819080"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.824247"], ["updated_at", "2015-10-29 16:45:21.824247"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.828480"], ["updated_at", "2015-10-29 16:45:21.828480"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:45:21.830484"], ["updated_at", "2015-10-29 16:45:21.830484"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.4ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.4ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 16:45:21.856332"], ["updated_at", "2015-10-29 16:45:21.856332"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 16:45:21.859116"], ["updated_at", "2015-10-29 16:45:21.859116"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:45:21.862220"], ["updated_at", "2015-10-29 16:45:21.862220"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:45:21.878839"], ["updated_at", "2015-10-29 16:45:21.878839"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 16:45:21.885782"], ["updated_at", "2015-10-29 16:45:21.885782"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 16:45:21.891444"], ["updated_at", "2015-10-29 16:45:21.891444"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:50:39.531959"], ["updated_at", "2015-10-29 16:50:39.531959"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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.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 [1m[36mActiveRecord::SchemaMigration Load (7.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:51:21.568110"], ["updated_at", "2015-10-29 16:51:21.568110"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:51:56.444806"], ["updated_at", "2015-10-29 16:51:56.444806"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (7.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-29 16:56:40.534941"], ["updated_at", "2015-10-29 16:56:40.534941"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:40.552382"], ["updated_at", "2015-10-29 16:56:40.552382"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (1.4ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.583189"], ["updated_at", "2015-10-29 16:56:40.583189"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:40.600060"], ["updated_at", "2015-10-29 16:56:40.600060"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:40.604843"], ["updated_at", "2015-10-29 16:56:40.604843"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 20ms (Views: 12.7ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-29 16:56:40.644541"], ["updated_at", "2015-10-29 16:56:40.644541"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:40.646837"], ["updated_at", "2015-10-29 16:56:40.646837"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.653339"], ["updated_at", "2015-10-29 16:56:40.653339"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:40.660155"], ["updated_at", "2015-10-29 16:56:40.660155"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:40.662294"], ["updated_at", "2015-10-29 16:56:40.662294"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.4ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (20.1ms) Completed 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 1.1ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-29 16:56:40.694044"], ["updated_at", "2015-10-29 16:56:40.694044"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:40.696868"], ["updated_at", "2015-10-29 16:56:40.696868"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.703902"], ["updated_at", "2015-10-29 16:56:40.703902"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:40.718460"], ["updated_at", "2015-10-29 16:56:40.718460"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:40.722555"], ["updated_at", "2015-10-29 16:56:40.722555"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-29 16:56:40.744016"], ["updated_at", "2015-10-29 16:56:40.744016"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:40.747866"], ["updated_at", "2015-10-29 16:56:40.747866"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.752349"], ["updated_at", "2015-10-29 16:56:40.752349"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:40.764465"], ["updated_at", "2015-10-29 16:56:40.764465"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:40.771420"], ["updated_at", "2015-10-29 16:56:40.771420"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.3ms) Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-29 16:56:40.792819"], ["updated_at", "2015-10-29 16:56:40.792819"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:40.795625"], ["updated_at", "2015-10-29 16:56:40.795625"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.798882"], ["updated_at", "2015-10-29 16:56:40.798882"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:40.805324"], ["updated_at", "2015-10-29 16:56:40.805324"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:40.809562"], ["updated_at", "2015-10-29 16:56:40.809562"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (8.7ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-29 16:56:40.990168"], ["updated_at", "2015-10-29 16:56:40.990168"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:40.992829"], ["updated_at", "2015-10-29 16:56:40.992829"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:40.996096"], ["updated_at", "2015-10-29 16:56:40.996096"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.002942"], ["updated_at", "2015-10-29 16:56:41.002942"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.007134"], ["updated_at", "2015-10-29 16:56:41.007134"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-29 16:56:41.014899"], ["updated_at", "2015-10-29 16:56:41.014899"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.017579"], ["updated_at", "2015-10-29 16:56:41.017579"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.022453"], ["updated_at", "2015-10-29 16:56:41.022453"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.029033"], ["updated_at", "2015-10-29 16:56:41.029033"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.031219"], ["updated_at", "2015-10-29 16:56:41.031219"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.6ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 28.9ms Sent mail to user7@sleede.com (10.7ms) Date: Thu, 29 Oct 2015 17:56:41 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56324fc910b00_3caa3ffa7c4601d477a1@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-29 16:56:41.077208"], ["updated_at", "2015-10-29 16:56:41.077208"]] [1m[35m (0.9ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.082243"], ["updated_at", "2015-10-29 16:56:41.082243"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.093339"], ["updated_at", "2015-10-29 16:56:41.093339"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.098502"], ["updated_at", "2015-10-29 16:56:41.098502"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.103774"], ["updated_at", "2015-10-29 16:56:41.103774"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.6ms Sent mail to user8@sleede.com (1.3ms) Date: Thu, 29 Oct 2015 17:56:41 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56324fc91b87e_3caa3ffa7c4601d47872@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[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.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-29 16:56:41.116475"], ["updated_at", "2015-10-29 16:56:41.116475"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.121173"], ["updated_at", "2015-10-29 16:56:41.121173"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.128935"], ["updated_at", "2015-10-29 16:56:41.128935"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.135660"], ["updated_at", "2015-10-29 16:56:41.135660"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.143657"], ["updated_at", "2015-10-29 16:56:41.143657"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.7ms Sent mail to user9@sleede.com (1.8ms) Date: Thu, 29 Oct 2015 17:56:41 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56324fc925cf9_3caa3ffa7c4601d47967@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (2.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-29 16:56:41.162379"], ["updated_at", "2015-10-29 16:56:41.162379"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.165060"], ["updated_at", "2015-10-29 16:56:41.165060"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.168401"], ["updated_at", "2015-10-29 16:56:41.168401"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.174363"], ["updated_at", "2015-10-29 16:56:41.174363"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.175987"], ["updated_at", "2015-10-29 16:56:41.175987"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user10@sleede.com (1.8ms) Date: Thu, 29 Oct 2015 17:56:41 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56324fc92bca8_3caa3ffa7c4601d48086@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.184838"], ["updated_at", "2015-10-29 16:56:41.184838"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-29 16:56:41.189278"], ["updated_at", "2015-10-29 16:56:41.189278"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.196752"], ["updated_at", "2015-10-29 16:56:41.196752"]] [1m[36m (0.6ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.206357"], ["updated_at", "2015-10-29 16:56:41.206357"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.210424"], ["updated_at", "2015-10-29 16:56:41.210424"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.3ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.229339"], ["updated_at", "2015-10-29 16:56:41.229339"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-29 16:56:41.232647"], ["updated_at", "2015-10-29 16:56:41.232647"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.241112"], ["updated_at", "2015-10-29 16:56:41.241112"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.246164"], ["updated_at", "2015-10-29 16:56:41.246164"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-29 16:56:41.250855"], ["updated_at", "2015-10-29 16:56:41.250855"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:56:41.257797"], ["updated_at", "2015-10-29 16:56:41.257797"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.259534"], ["updated_at", "2015-10-29 16:56:41.259534"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.264823"], ["updated_at", "2015-10-29 16:56:41.264823"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.271872"], ["updated_at", "2015-10-29 16:56:41.271872"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-29 16:56:41.273837"], ["updated_at", "2015-10-29 16:56:41.273837"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.276767"], ["updated_at", "2015-10-29 16:56:41.276767"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.283125"], ["updated_at", "2015-10-29 16:56:41.283125"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-29 16:56:41.287320"], ["updated_at", "2015-10-29 16:56:41.287320"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:56:41.299482"], ["updated_at", "2015-10-29 16:56:41.299482"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.305255"], ["updated_at", "2015-10-29 16:56:41.305255"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.307670"], ["updated_at", "2015-10-29 16:56:41.307670"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.311835"], ["updated_at", "2015-10-29 16:56:41.311835"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-29 16:56:41.313587"], ["updated_at", "2015-10-29 16:56:41.313587"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.318163"], ["updated_at", "2015-10-29 16:56:41.318163"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.327894"], ["updated_at", "2015-10-29 16:56:41.327894"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.342952"], ["updated_at", "2015-10-29 16:56:41.342952"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-29 16:56:41.344694"], ["updated_at", "2015-10-29 16:56:41.344694"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.347324"], ["updated_at", "2015-10-29 16:56:41.347324"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.351456"], ["updated_at", "2015-10-29 16:56:41.351456"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.367216"], ["updated_at", "2015-10-29 16:56:41.367216"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-29 16:56:41.372930"], ["updated_at", "2015-10-29 16:56:41.372930"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.377714"], ["updated_at", "2015-10-29 16:56:41.377714"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.383448"], ["updated_at", "2015-10-29 16:56:41.383448"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-29 16:56:41.387049"], ["updated_at", "2015-10-29 16:56:41.387049"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:56:41.393277"], ["updated_at", "2015-10-29 16:56:41.393277"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.397721"], ["updated_at", "2015-10-29 16:56:41.397721"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.404561"], ["updated_at", "2015-10-29 16:56:41.404561"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.409994"], ["updated_at", "2015-10-29 16:56:41.409994"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-29 16:56:41.411938"], ["updated_at", "2015-10-29 16:56:41.411938"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.415223"], ["updated_at", "2015-10-29 16:56:41.415223"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.424639"], ["updated_at", "2015-10-29 16:56:41.424639"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-29 16:56:41.434372"], ["updated_at", "2015-10-29 16:56:41.434372"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-29 16:56:41.443369"], ["updated_at", "2015-10-29 16:56:41.443369"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-29 16:56:41.444908"], ["updated_at", "2015-10-29 16:56:41.444908"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.447132"], ["updated_at", "2015-10-29 16:56:41.447132"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-29 16:56:41.454499"], ["updated_at", "2015-10-29 16:56:41.454499"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (5.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.460711"], ["updated_at", "2015-10-29 16:56:41.460711"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.478567"], ["updated_at", "2015-10-29 16:56:41.478567"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.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.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-29 16:56:41.495310"], ["updated_at", "2015-10-29 16:56:41.495310"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.498855"], ["updated_at", "2015-10-29 16:56:41.498855"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.503018"], ["updated_at", "2015-10-29 16:56:41.503018"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-29 16:56:41.511573"], ["updated_at", "2015-10-29 16:56:41.511573"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.514510"], ["updated_at", "2015-10-29 16:56:41.514510"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.517991"], ["updated_at", "2015-10-29 16:56:41.517991"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.534076"], ["updated_at", "2015-10-29 16:56:41.534076"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-29 16:56:41.550859"], ["updated_at", "2015-10-29 16:56:41.550859"]] [1m[35m (1.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-29 16:56:41.560647"], ["updated_at", "2015-10-29 16:56:41.560647"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.568916"], ["updated_at", "2015-10-29 16:56:41.568916"]] [1m[36m (0.6ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.575228"], ["updated_at", "2015-10-29 16:56:41.575228"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-29 16:56:41.577090"], ["updated_at", "2015-10-29 16:56:41.577090"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-29 16:56:41.589317"], ["updated_at", "2015-10-29 16:56:41.589317"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-29 16:56:41.599611"], ["updated_at", "2015-10-29 16:56:41.599611"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (1.8ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-29 16:56:41.606693"], ["updated_at", "2015-10-29 16:56:41.606693"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-29 16:56:41.633346"], ["updated_at", "2015-10-29 16:56:41.633346"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-29 16:56:41.641325"], ["updated_at", "2015-10-29 16:56:41.641325"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-29 16:56:41.647126"], ["updated_at", "2015-10-29 16:56:41.647126"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (1.2ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 10:38:52.861937"], ["updated_at", "2015-10-30 10:38:52.861937"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:38:52.896142"], ["updated_at", "2015-10-30 10:38:52.896142"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:38:52.925695"], ["updated_at", "2015-10-30 10:38:52.925695"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:38:52.940519"], ["updated_at", "2015-10-30 10:38:52.940519"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:38:52.943627"], ["updated_at", "2015-10-30 10:38:52.943627"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:38:52.952323"], ["updated_at", "2015-10-30 10:38:52.952323"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:38:52.966001"], ["updated_at", "2015-10-30 10:38:52.966001"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:38:52.969400"], ["updated_at", "2015-10-30 10:38:52.969400"]] [1m[35m (0.6ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:38:52.985543"], ["updated_at", "2015-10-30 10:38:52.985543"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.9ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:38:53.017167"], ["updated_at", "2015-10-30 10:38:53.017167"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:38:53.021768"], ["updated_at", "2015-10-30 10:38:53.021768"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:38:53.027958"], ["updated_at", "2015-10-30 10:38:53.027958"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 10:39:05.212813"], ["updated_at", "2015-10-30 10:39:05.212813"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.245905"], ["updated_at", "2015-10-30 10:39:05.245905"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:05.272002"], ["updated_at", "2015-10-30 10:39:05.272002"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:39:05.290294"], ["updated_at", "2015-10-30 10:39:05.290294"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.293172"], ["updated_at", "2015-10-30 10:39:05.293172"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:05.298382"], ["updated_at", "2015-10-30 10:39:05.298382"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:39:05.309096"], ["updated_at", "2015-10-30 10:39:05.309096"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.315131"], ["updated_at", "2015-10-30 10:39:05.315131"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:05.323297"], ["updated_at", "2015-10-30 10:39:05.323297"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:39:05.335982"], ["updated_at", "2015-10-30 10:39:05.335982"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.338841"], ["updated_at", "2015-10-30 10:39:05.338841"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:05.344348"], ["updated_at", "2015-10-30 10:39:05.344348"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 10:39:05.355410"], ["updated_at", "2015-10-30 10:39:05.355410"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:05.358337"], ["updated_at", "2015-10-30 10:39:05.358337"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:05.362248"], ["updated_at", "2015-10-30 10:39:05.362248"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 10:39:25.542433"], ["updated_at", "2015-10-30 10:39:25.542433"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.589729"], ["updated_at", "2015-10-30 10:39:25.589729"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:25.615400"], ["updated_at", "2015-10-30 10:39:25.615400"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:39:25.629163"], ["updated_at", "2015-10-30 10:39:25.629163"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.632672"], ["updated_at", "2015-10-30 10:39:25.632672"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:25.638297"], ["updated_at", "2015-10-30 10:39:25.638297"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (6.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:39:25.647150"], ["updated_at", "2015-10-30 10:39:25.647150"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.661112"], ["updated_at", "2015-10-30 10:39:25.661112"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:25.669958"], ["updated_at", "2015-10-30 10:39:25.669958"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:39:25.677503"], ["updated_at", "2015-10-30 10:39:25.677503"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.680364"], ["updated_at", "2015-10-30 10:39:25.680364"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:25.693191"], ["updated_at", "2015-10-30 10:39:25.693191"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 10:39:25.700036"], ["updated_at", "2015-10-30 10:39:25.700036"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:39:25.703001"], ["updated_at", "2015-10-30 10:39:25.703001"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:39:25.705773"], ["updated_at", "2015-10-30 10:39:25.705773"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 10:47:13.841797"], ["updated_at", "2015-10-30 10:47:13.841797"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:13.867562"], ["updated_at", "2015-10-30 10:47:13.867562"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:13.891076"], ["updated_at", "2015-10-30 10:47:13.891076"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:13.923569"], ["updated_at", "2015-10-30 10:47:13.923569"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:13.930220"], ["updated_at", "2015-10-30 10:47:13.930220"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.4ms) Completed 200 OK in 28ms (Views: 17.0ms | ActiveRecord: 0.0ms) [1m[35m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:47:13.991709"], ["updated_at", "2015-10-30 10:47:13.991709"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:13.995241"], ["updated_at", "2015-10-30 10:47:13.995241"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.026934"], ["updated_at", "2015-10-30 10:47:14.026934"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.044376"], ["updated_at", "2015-10-30 10:47:14.044376"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.046416"], ["updated_at", "2015-10-30 10:47:14.046416"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.7ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (19.2ms) Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.8ms) [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:47:14.077627"], ["updated_at", "2015-10-30 10:47:14.077627"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.080488"], ["updated_at", "2015-10-30 10:47:14.080488"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.084851"], ["updated_at", "2015-10-30 10:47:14.084851"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.092714"], ["updated_at", "2015-10-30 10:47:14.092714"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.095703"], ["updated_at", "2015-10-30 10:47:14.095703"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (5.8ms) Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.4ms) [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:47:14.121036"], ["updated_at", "2015-10-30 10:47:14.121036"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.126109"], ["updated_at", "2015-10-30 10:47:14.126109"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.130736"], ["updated_at", "2015-10-30 10:47:14.130736"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.137920"], ["updated_at", "2015-10-30 10:47:14.137920"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.143193"], ["updated_at", "2015-10-30 10:47:14.143193"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.0ms) Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 10:47:14.169548"], ["updated_at", "2015-10-30 10:47:14.169548"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.172175"], ["updated_at", "2015-10-30 10:47:14.172175"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.178998"], ["updated_at", "2015-10-30 10:47:14.178998"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.187619"], ["updated_at", "2015-10-30 10:47:14.187619"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.192497"], ["updated_at", "2015-10-30 10:47:14.192497"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 10:47:14.395847"], ["updated_at", "2015-10-30 10:47:14.395847"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.398789"], ["updated_at", "2015-10-30 10:47:14.398789"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.401583"], ["updated_at", "2015-10-30 10:47:14.401583"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.407568"], ["updated_at", "2015-10-30 10:47:14.407568"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.412239"], ["updated_at", "2015-10-30 10:47:14.412239"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:47:14.420027"], ["updated_at", "2015-10-30 10:47:14.420027"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.422512"], ["updated_at", "2015-10-30 10:47:14.422512"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.427479"], ["updated_at", "2015-10-30 10:47:14.427479"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.430783"], ["updated_at", "2015-10-30 10:47:14.430783"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.435712"], ["updated_at", "2015-10-30 10:47:14.435712"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 10:47:14.447776"], ["updated_at", "2015-10-30 10:47:14.447776"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.450649"], ["updated_at", "2015-10-30 10:47:14.450649"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.455762"], ["updated_at", "2015-10-30 10:47:14.455762"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.459479"], ["updated_at", "2015-10-30 10:47:14.459479"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.464205"], ["updated_at", "2015-10-30 10:47:14.464205"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:47:14.471260"], ["updated_at", "2015-10-30 10:47:14.471260"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.477363"], ["updated_at", "2015-10-30 10:47:14.477363"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.487995"], ["updated_at", "2015-10-30 10:47:14.487995"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.494919"], ["updated_at", "2015-10-30 10:47:14.494919"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.496788"], ["updated_at", "2015-10-30 10:47:14.496788"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.7ms [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 10:47:14.504276"], ["updated_at", "2015-10-30 10:47:14.504276"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.507267"], ["updated_at", "2015-10-30 10:47:14.507267"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.510809"], ["updated_at", "2015-10-30 10:47:14.510809"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.525486"], ["updated_at", "2015-10-30 10:47:14.525486"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.537009"], ["updated_at", "2015-10-30 10:47:14.537009"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_for: processed outbound mail in 1.0ms [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.545475"], ["updated_at", "2015-10-30 10:47:14.545475"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 10:47:14.548463"], ["updated_at", "2015-10-30 10:47:14.548463"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.561071"], ["updated_at", "2015-10-30 10:47:14.561071"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.582784"], ["updated_at", "2015-10-30 10:47:14.582784"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.588858"], ["updated_at", "2015-10-30 10:47:14.588858"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.601622"], ["updated_at", "2015-10-30 10:47:14.601622"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 10:47:14.605069"], ["updated_at", "2015-10-30 10:47:14.605069"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (2.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.610279"], ["updated_at", "2015-10-30 10:47:14.610279"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.621416"], ["updated_at", "2015-10-30 10:47:14.621416"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 10:47:14.626145"], ["updated_at", "2015-10-30 10:47:14.626145"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:47:14.635697"], ["updated_at", "2015-10-30 10:47:14.635697"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.640732"], ["updated_at", "2015-10-30 10:47:14.640732"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.649511"], ["updated_at", "2015-10-30 10:47:14.649511"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.654833"], ["updated_at", "2015-10-30 10:47:14.654833"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 10:47:14.656763"], ["updated_at", "2015-10-30 10:47:14.656763"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.661854"], ["updated_at", "2015-10-30 10:47:14.661854"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.668198"], ["updated_at", "2015-10-30 10:47:14.668198"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 10:47:14.672404"], ["updated_at", "2015-10-30 10:47:14.672404"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:47:14.675730"], ["updated_at", "2015-10-30 10:47:14.675730"]] [1m[36m (1.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.683932"], ["updated_at", "2015-10-30 10:47:14.683932"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.686858"], ["updated_at", "2015-10-30 10:47:14.686858"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.694903"], ["updated_at", "2015-10-30 10:47:14.694903"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 10:47:14.699317"], ["updated_at", "2015-10-30 10:47:14.699317"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.703015"], ["updated_at", "2015-10-30 10:47:14.703015"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.723278"], ["updated_at", "2015-10-30 10:47:14.723278"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.748341"], ["updated_at", "2015-10-30 10:47:14.748341"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:47:14.755522"], ["updated_at", "2015-10-30 10:47:14.755522"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.769557"], ["updated_at", "2015-10-30 10:47:14.769557"]] [1m[36m (0.6ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.786047"], ["updated_at", "2015-10-30 10:47:14.786047"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.793161"], ["updated_at", "2015-10-30 10:47:14.793161"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 10:47:14.795075"], ["updated_at", "2015-10-30 10:47:14.795075"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.798985"], ["updated_at", "2015-10-30 10:47:14.798985"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.802564"], ["updated_at", "2015-10-30 10:47:14.802564"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 10:47:14.811113"], ["updated_at", "2015-10-30 10:47:14.811113"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:47:14.826807"], ["updated_at", "2015-10-30 10:47:14.826807"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:14.840291"], ["updated_at", "2015-10-30 10:47:14.840291"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.846651"], ["updated_at", "2015-10-30 10:47:14.846651"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.854983"], ["updated_at", "2015-10-30 10:47:14.854983"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:47:14.857651"], ["updated_at", "2015-10-30 10:47:14.857651"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.860643"], ["updated_at", "2015-10-30 10:47:14.860643"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.869858"], ["updated_at", "2015-10-30 10:47:14.869858"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:47:14.872683"], ["updated_at", "2015-10-30 10:47:14.872683"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (1.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (1.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:47:14.890498"], ["updated_at", "2015-10-30 10:47:14.890498"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:47:14.893719"], ["updated_at", "2015-10-30 10:47:14.893719"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:14.897714"], ["updated_at", "2015-10-30 10:47:14.897714"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:47:14.901764"], ["updated_at", "2015-10-30 10:47:14.901764"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.904539"], ["updated_at", "2015-10-30 10:47:14.904539"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (1.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.914623"], ["updated_at", "2015-10-30 10:47:14.914623"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 10:47:14.934283"], ["updated_at", "2015-10-30 10:47:14.934283"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.947536"], ["updated_at", "2015-10-30 10:47:14.947536"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.953156"], ["updated_at", "2015-10-30 10:47:14.953156"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:47:14.962519"], ["updated_at", "2015-10-30 10:47:14.962519"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.965547"], ["updated_at", "2015-10-30 10:47:14.965547"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.970344"], ["updated_at", "2015-10-30 10:47:14.970344"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 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.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:47:14.981999"], ["updated_at", "2015-10-30 10:47:14.981999"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:14.989885"], ["updated_at", "2015-10-30 10:47:14.989885"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:14.999664"], ["updated_at", "2015-10-30 10:47:14.999664"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:47:15.008044"], ["updated_at", "2015-10-30 10:47:15.008044"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:15.015443"], ["updated_at", "2015-10-30 10:47:15.015443"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:15.021399"], ["updated_at", "2015-10-30 10:47:15.021399"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.5ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:15.035077"], ["updated_at", "2015-10-30 10:47:15.035077"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.6ms)[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.3ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:47:15.053908"], ["updated_at", "2015-10-30 10:47:15.053908"]] [1m[35m (1.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:47:15.062089"], ["updated_at", "2015-10-30 10:47:15.062089"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:15.066305"], ["updated_at", "2015-10-30 10:47:15.066305"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:15.071914"], ["updated_at", "2015-10-30 10:47:15.071914"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:47:15.075060"], ["updated_at", "2015-10-30 10:47:15.075060"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:47:15.088587"], ["updated_at", "2015-10-30 10:47:15.088587"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 10:47:15.097269"], ["updated_at", "2015-10-30 10:47:15.097269"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:47:15.117804"], ["updated_at", "2015-10-30 10:47:15.117804"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:47:15.147787"], ["updated_at", "2015-10-30 10:47:15.147787"]] [1m[36m (0.6ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:47:15.153745"], ["updated_at", "2015-10-30 10:47:15.153745"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 10:47:15.168302"], ["updated_at", "2015-10-30 10:47:15.168302"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (2.0ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 10:49:26.900496"], ["updated_at", "2015-10-30 10:49:26.900496"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:26.918720"], ["updated_at", "2015-10-30 10:49:26.918720"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.7ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:26.947409"], ["updated_at", "2015-10-30 10:49:26.947409"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:26.967105"], ["updated_at", "2015-10-30 10:49:26.967105"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:26.971401"], ["updated_at", "2015-10-30 10:49:26.971401"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 11.0ms | ActiveRecord: 0.0ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:49:27.008171"], ["updated_at", "2015-10-30 10:49:27.008171"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.010461"], ["updated_at", "2015-10-30 10:49:27.010461"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.014574"], ["updated_at", "2015-10-30 10:49:27.014574"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.023554"], ["updated_at", "2015-10-30 10:49:27.023554"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.028350"], ["updated_at", "2015-10-30 10:49:27.028350"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.6ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (13.5ms) Completed 200 OK in 18ms (Views: 14.3ms | ActiveRecord: 0.4ms) [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:49:27.067014"], ["updated_at", "2015-10-30 10:49:27.067014"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.069729"], ["updated_at", "2015-10-30 10:49:27.069729"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.075747"], ["updated_at", "2015-10-30 10:49:27.075747"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.083256"], ["updated_at", "2015-10-30 10:49:27.083256"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.085278"], ["updated_at", "2015-10-30 10:49:27.085278"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (5.2ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.4ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:49:27.109660"], ["updated_at", "2015-10-30 10:49:27.109660"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.116610"], ["updated_at", "2015-10-30 10:49:27.116610"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.124381"], ["updated_at", "2015-10-30 10:49:27.124381"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.128928"], ["updated_at", "2015-10-30 10:49:27.128928"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.132551"], ["updated_at", "2015-10-30 10:49:27.132551"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (6.8ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.5ms) [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 10:49:27.160503"], ["updated_at", "2015-10-30 10:49:27.160503"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.165111"], ["updated_at", "2015-10-30 10:49:27.165111"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.172662"], ["updated_at", "2015-10-30 10:49:27.172662"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.178102"], ["updated_at", "2015-10-30 10:49:27.178102"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.183410"], ["updated_at", "2015-10-30 10:49:27.183410"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 10:49:27.360814"], ["updated_at", "2015-10-30 10:49:27.360814"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.363539"], ["updated_at", "2015-10-30 10:49:27.363539"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.366658"], ["updated_at", "2015-10-30 10:49:27.366658"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.371097"], ["updated_at", "2015-10-30 10:49:27.371097"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.376111"], ["updated_at", "2015-10-30 10:49:27.376111"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:49:27.385485"], ["updated_at", "2015-10-30 10:49:27.385485"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.388372"], ["updated_at", "2015-10-30 10:49:27.388372"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.391477"], ["updated_at", "2015-10-30 10:49:27.391477"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.394506"], ["updated_at", "2015-10-30 10:49:27.394506"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.396697"], ["updated_at", "2015-10-30 10:49:27.396697"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 10:49:27.403568"], ["updated_at", "2015-10-30 10:49:27.403568"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.406109"], ["updated_at", "2015-10-30 10:49:27.406109"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.408913"], ["updated_at", "2015-10-30 10:49:27.408913"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.411330"], ["updated_at", "2015-10-30 10:49:27.411330"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.413494"], ["updated_at", "2015-10-30 10:49:27.413494"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_for: processed outbound mail in 0.5ms [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:49:27.420554"], ["updated_at", "2015-10-30 10:49:27.420554"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.424133"], ["updated_at", "2015-10-30 10:49:27.424133"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.430839"], ["updated_at", "2015-10-30 10:49:27.430839"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.434492"], ["updated_at", "2015-10-30 10:49:27.434492"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.436453"], ["updated_at", "2015-10-30 10:49:27.436453"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 10:49:27.448750"], ["updated_at", "2015-10-30 10:49:27.448750"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.452091"], ["updated_at", "2015-10-30 10:49:27.452091"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.455533"], ["updated_at", "2015-10-30 10:49:27.455533"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.458766"], ["updated_at", "2015-10-30 10:49:27.458766"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.460639"], ["updated_at", "2015-10-30 10:49:27.460639"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m NotificationsMailer#send_mail_for: processed outbound mail in 0.7ms [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.465511"], ["updated_at", "2015-10-30 10:49:27.465511"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 10:49:27.468361"], ["updated_at", "2015-10-30 10:49:27.468361"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.471412"], ["updated_at", "2015-10-30 10:49:27.471412"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.474252"], ["updated_at", "2015-10-30 10:49:27.474252"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.476586"], ["updated_at", "2015-10-30 10:49:27.476586"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.491055"], ["updated_at", "2015-10-30 10:49:27.491055"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 10:49:27.496072"], ["updated_at", "2015-10-30 10:49:27.496072"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.505201"], ["updated_at", "2015-10-30 10:49:27.505201"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.515125"], ["updated_at", "2015-10-30 10:49:27.515125"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 10:49:27.517592"], ["updated_at", "2015-10-30 10:49:27.517592"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:49:27.523997"], ["updated_at", "2015-10-30 10:49:27.523997"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.527532"], ["updated_at", "2015-10-30 10:49:27.527532"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.7ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.536947"], ["updated_at", "2015-10-30 10:49:27.536947"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.543830"], ["updated_at", "2015-10-30 10:49:27.543830"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 10:49:27.545987"], ["updated_at", "2015-10-30 10:49:27.545987"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.548623"], ["updated_at", "2015-10-30 10:49:27.548623"]] [1m[35m (1.9ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.569449"], ["updated_at", "2015-10-30 10:49:27.569449"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 10:49:27.572741"], ["updated_at", "2015-10-30 10:49:27.572741"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:49:27.579163"], ["updated_at", "2015-10-30 10:49:27.579163"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.580838"], ["updated_at", "2015-10-30 10:49:27.580838"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.582718"], ["updated_at", "2015-10-30 10:49:27.582718"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.591087"], ["updated_at", "2015-10-30 10:49:27.591087"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 10:49:27.595402"], ["updated_at", "2015-10-30 10:49:27.595402"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.606740"], ["updated_at", "2015-10-30 10:49:27.606740"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (1.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.631885"], ["updated_at", "2015-10-30 10:49:27.631885"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.649289"], ["updated_at", "2015-10-30 10:49:27.649289"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:49:27.651657"], ["updated_at", "2015-10-30 10:49:27.651657"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.660584"], ["updated_at", "2015-10-30 10:49:27.660584"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.666508"], ["updated_at", "2015-10-30 10:49:27.666508"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.671205"], ["updated_at", "2015-10-30 10:49:27.671205"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 10:49:27.673201"], ["updated_at", "2015-10-30 10:49:27.673201"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.677060"], ["updated_at", "2015-10-30 10:49:27.677060"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.680968"], ["updated_at", "2015-10-30 10:49:27.680968"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 10:49:27.692959"], ["updated_at", "2015-10-30 10:49:27.692959"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:49:27.698292"], ["updated_at", "2015-10-30 10:49:27.698292"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.699884"], ["updated_at", "2015-10-30 10:49:27.699884"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.702161"], ["updated_at", "2015-10-30 10:49:27.702161"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.713413"], ["updated_at", "2015-10-30 10:49:27.713413"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:49:27.719370"], ["updated_at", "2015-10-30 10:49:27.719370"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.722988"], ["updated_at", "2015-10-30 10:49:27.722988"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.729562"], ["updated_at", "2015-10-30 10:49:27.729562"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:49:27.734609"], ["updated_at", "2015-10-30 10:49:27.734609"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:49:27.737475"], ["updated_at", "2015-10-30 10:49:27.737475"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:49:27.738978"], ["updated_at", "2015-10-30 10:49:27.738978"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.740884"], ["updated_at", "2015-10-30 10:49:27.740884"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:49:27.745486"], ["updated_at", "2015-10-30 10:49:27.745486"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.751775"], ["updated_at", "2015-10-30 10:49:27.751775"]] [1m[36m (2.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.774229"], ["updated_at", "2015-10-30 10:49:27.774229"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (3.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 10:49:27.791932"], ["updated_at", "2015-10-30 10:49:27.791932"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (8.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.808731"], ["updated_at", "2015-10-30 10:49:27.808731"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.815674"], ["updated_at", "2015-10-30 10:49:27.815674"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:49:27.837298"], ["updated_at", "2015-10-30 10:49:27.837298"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.845598"], ["updated_at", "2015-10-30 10:49:27.845598"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.849327"], ["updated_at", "2015-10-30 10:49:27.849327"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:49:27.857929"], ["updated_at", "2015-10-30 10:49:27.857929"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.861255"], ["updated_at", "2015-10-30 10:49:27.861255"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.871665"], ["updated_at", "2015-10-30 10:49:27.871665"]] [1m[36m (0.1ms)[0m [1mRELEASE 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 (3.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:49:27.880054"], ["updated_at", "2015-10-30 10:49:27.880054"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (1.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.894647"], ["updated_at", "2015-10-30 10:49:27.894647"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.905722"], ["updated_at", "2015-10-30 10:49:27.905722"]] [1m[36m (0.1ms)[0m [1mRELEASE 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[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.912119"], ["updated_at", "2015-10-30 10:49:27.912119"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:49:27.924810"], ["updated_at", "2015-10-30 10:49:27.924810"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:49:27.932223"], ["updated_at", "2015-10-30 10:49:27.932223"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.939925"], ["updated_at", "2015-10-30 10:49:27.939925"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.944439"], ["updated_at", "2015-10-30 10:49:27.944439"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:49:27.952293"], ["updated_at", "2015-10-30 10:49:27.952293"]] [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:49:27.971439"], ["updated_at", "2015-10-30 10:49:27.971439"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 10:49:27.974027"], ["updated_at", "2015-10-30 10:49:27.974027"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:49:27.977409"], ["updated_at", "2015-10-30 10:49:27.977409"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:49:27.991464"], ["updated_at", "2015-10-30 10:49:27.991464"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:49:27.993899"], ["updated_at", "2015-10-30 10:49:27.993899"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 10:49:27.999861"], ["updated_at", "2015-10-30 10:49:27.999861"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (1.3ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 10:51:29.191114"], ["updated_at", "2015-10-30 10:51:29.191114"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.214875"], ["updated_at", "2015-10-30 10:51:29.214875"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.247799"], ["updated_at", "2015-10-30 10:51:29.247799"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.265030"], ["updated_at", "2015-10-30 10:51:29.265030"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.268759"], ["updated_at", "2015-10-30 10:51:29.268759"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 11.8ms | ActiveRecord: 0.0ms) [1m[35m (0.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:51:29.306403"], ["updated_at", "2015-10-30 10:51:29.306403"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.309538"], ["updated_at", "2015-10-30 10:51:29.309538"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.314239"], ["updated_at", "2015-10-30 10:51:29.314239"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.323483"], ["updated_at", "2015-10-30 10:51:29.323483"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.328641"], ["updated_at", "2015-10-30 10:51:29.328641"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (15.6ms) Completed 200 OK in 20ms (Views: 15.8ms | ActiveRecord: 0.5ms) [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:51:29.370195"], ["updated_at", "2015-10-30 10:51:29.370195"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.373955"], ["updated_at", "2015-10-30 10:51:29.373955"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.380522"], ["updated_at", "2015-10-30 10:51:29.380522"]] [1m[36m (0.7ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.389458"], ["updated_at", "2015-10-30 10:51:29.389458"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.394558"], ["updated_at", "2015-10-30 10:51:29.394558"]] [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.4ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.3ms) [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:51:29.422001"], ["updated_at", "2015-10-30 10:51:29.422001"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.428667"], ["updated_at", "2015-10-30 10:51:29.428667"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.433371"], ["updated_at", "2015-10-30 10:51:29.433371"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.440674"], ["updated_at", "2015-10-30 10:51:29.440674"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.445248"], ["updated_at", "2015-10-30 10:51:29.445248"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (2.3ms) Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.3ms) [1m[36m (2.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 10:51:29.469426"], ["updated_at", "2015-10-30 10:51:29.469426"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.474042"], ["updated_at", "2015-10-30 10:51:29.474042"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.482704"], ["updated_at", "2015-10-30 10:51:29.482704"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.494478"], ["updated_at", "2015-10-30 10:51:29.494478"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.498941"], ["updated_at", "2015-10-30 10:51:29.498941"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 14ms (ActiveRecord: 0.3ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 10:51:29.702656"], ["updated_at", "2015-10-30 10:51:29.702656"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:29.705888"], ["updated_at", "2015-10-30 10:51:29.705888"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.709584"], ["updated_at", "2015-10-30 10:51:29.709584"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.712740"], ["updated_at", "2015-10-30 10:51:29.712740"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.716594"], ["updated_at", "2015-10-30 10:51:29.716594"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:51:29.727749"], ["updated_at", "2015-10-30 10:51:29.727749"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.730348"], ["updated_at", "2015-10-30 10:51:29.730348"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.733060"], ["updated_at", "2015-10-30 10:51:29.733060"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.735938"], ["updated_at", "2015-10-30 10:51:29.735938"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.742216"], ["updated_at", "2015-10-30 10:51:29.742216"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.8ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 22.7ms Sent mail to user7@sleede.com (9.6ms) Date: Fri, 30 Oct 2015 11:51:29 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56334bb1bd5ea_70b13fd98c8601dc72543@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 10:51:29.784457"], ["updated_at", "2015-10-30 10:51:29.784457"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.796174"], ["updated_at", "2015-10-30 10:51:29.796174"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.807452"], ["updated_at", "2015-10-30 10:51:29.807452"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.815042"], ["updated_at", "2015-10-30 10:51:29.815042"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.819349"], ["updated_at", "2015-10-30 10:51:29.819349"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 7.9ms Sent mail to user8@sleede.com (5.5ms) Date: Fri, 30 Oct 2015 11:51:29 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56334bb1cd249_70b13fd98c8601dc72639@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (1.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:51:29.851115"], ["updated_at", "2015-10-30 10:51:29.851115"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (6.6ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.863776"], ["updated_at", "2015-10-30 10:51:29.863776"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.9ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.896264"], ["updated_at", "2015-10-30 10:51:29.896264"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.900073"], ["updated_at", "2015-10-30 10:51:29.900073"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.901701"], ["updated_at", "2015-10-30 10:51:29.901701"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.2ms Sent mail to user9@sleede.com (2.4ms) Date: Fri, 30 Oct 2015 11:51:29 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56334bb1ddc4c_70b13fd98c8601dc72741@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 10:51:29.913292"], ["updated_at", "2015-10-30 10:51:29.913292"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.916662"], ["updated_at", "2015-10-30 10:51:29.916662"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.919468"], ["updated_at", "2015-10-30 10:51:29.919468"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:29.943563"], ["updated_at", "2015-10-30 10:51:29.943563"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:29.951624"], ["updated_at", "2015-10-30 10:51:29.951624"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (2.7ms) Date: Fri, 30 Oct 2015 11:51:29 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56334bb1e935c_70b13fd98c8601dc72830@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.7ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:29.965337"], ["updated_at", "2015-10-30 10:51:29.965337"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 10:51:29.969477"], ["updated_at", "2015-10-30 10:51:29.969477"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:29.986474"], ["updated_at", "2015-10-30 10:51:29.986474"]] [1m[36m (0.5ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (2.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.008455"], ["updated_at", "2015-10-30 10:51:30.008455"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:30.014110"], ["updated_at", "2015-10-30 10:51:30.014110"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (1.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (2.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.032673"], ["updated_at", "2015-10-30 10:51:30.032673"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 10:51:30.035610"], ["updated_at", "2015-10-30 10:51:30.035610"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.041355"], ["updated_at", "2015-10-30 10:51:30.041355"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.061911"], ["updated_at", "2015-10-30 10:51:30.061911"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 10:51:30.070825"], ["updated_at", "2015-10-30 10:51:30.070825"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:30.074726"], ["updated_at", "2015-10-30 10:51:30.074726"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.077074"], ["updated_at", "2015-10-30 10:51:30.077074"]] [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:30.085844"], ["updated_at", "2015-10-30 10:51:30.085844"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.096027"], ["updated_at", "2015-10-30 10:51:30.096027"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 10:51:30.104642"], ["updated_at", "2015-10-30 10:51:30.104642"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.117155"], ["updated_at", "2015-10-30 10:51:30.117155"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.136145"], ["updated_at", "2015-10-30 10:51:30.136145"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 10:51:30.138700"], ["updated_at", "2015-10-30 10:51:30.138700"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:30.144156"], ["updated_at", "2015-10-30 10:51:30.144156"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.146461"], ["updated_at", "2015-10-30 10:51:30.146461"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:30.148640"], ["updated_at", "2015-10-30 10:51:30.148640"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.155615"], ["updated_at", "2015-10-30 10:51:30.155615"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 10:51:30.159072"], ["updated_at", "2015-10-30 10:51:30.159072"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.170053"], ["updated_at", "2015-10-30 10:51:30.170053"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.184038"], ["updated_at", "2015-10-30 10:51:30.184038"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.198607"], ["updated_at", "2015-10-30 10:51:30.198607"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:51:30.200772"], ["updated_at", "2015-10-30 10:51:30.200772"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.215909"], ["updated_at", "2015-10-30 10:51:30.215909"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.222049"], ["updated_at", "2015-10-30 10:51:30.222049"]] [1m[36m (0.1ms)[0m [1mRELEASE 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 (1.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.231680"], ["updated_at", "2015-10-30 10:51:30.231680"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 10:51:30.241328"], ["updated_at", "2015-10-30 10:51:30.241328"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.257752"], ["updated_at", "2015-10-30 10:51:30.257752"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.266018"], ["updated_at", "2015-10-30 10:51:30.266018"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 10:51:30.270062"], ["updated_at", "2015-10-30 10:51:30.270062"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:30.276912"], ["updated_at", "2015-10-30 10:51:30.276912"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.281977"], ["updated_at", "2015-10-30 10:51:30.281977"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:30.284391"], ["updated_at", "2015-10-30 10:51:30.284391"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.289468"], ["updated_at", "2015-10-30 10:51:30.289468"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:51:30.292623"], ["updated_at", "2015-10-30 10:51:30.292623"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.311480"], ["updated_at", "2015-10-30 10:51:30.311480"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.316330"], ["updated_at", "2015-10-30 10:51:30.316330"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:51:30.318519"], ["updated_at", "2015-10-30 10:51:30.318519"]] [1m[35m (0.6ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:30.328660"], ["updated_at", "2015-10-30 10:51:30.328660"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:30.331562"], ["updated_at", "2015-10-30 10:51:30.331562"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:30.333757"], ["updated_at", "2015-10-30 10:51:30.333757"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:51:30.346594"], ["updated_at", "2015-10-30 10:51:30.346594"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.350570"], ["updated_at", "2015-10-30 10:51:30.350570"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.358736"], ["updated_at", "2015-10-30 10:51:30.358736"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 10:51:30.382758"], ["updated_at", "2015-10-30 10:51:30.382758"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.386209"], ["updated_at", "2015-10-30 10:51:30.386209"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.404529"], ["updated_at", "2015-10-30 10:51:30.404529"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:51:30.422038"], ["updated_at", "2015-10-30 10:51:30.422038"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.425200"], ["updated_at", "2015-10-30 10:51:30.425200"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.440250"], ["updated_at", "2015-10-30 10:51:30.440250"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.8ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:51:30.455309"], ["updated_at", "2015-10-30 10:51:30.455309"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.457989"], ["updated_at", "2015-10-30 10:51:30.457989"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.471002"], ["updated_at", "2015-10-30 10:51:30.471002"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:51:30.485853"], ["updated_at", "2015-10-30 10:51:30.485853"]] [1m[35m (0.6ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.498157"], ["updated_at", "2015-10-30 10:51:30.498157"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (1.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.512197"], ["updated_at", "2015-10-30 10:51:30.512197"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.523498"], ["updated_at", "2015-10-30 10:51:30.523498"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:51:30.553383"], ["updated_at", "2015-10-30 10:51:30.553383"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:30.556954"], ["updated_at", "2015-10-30 10:51:30.556954"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.560495"], ["updated_at", "2015-10-30 10:51:30.560495"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (1.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.577148"], ["updated_at", "2015-10-30 10:51:30.577148"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:30.584628"], ["updated_at", "2015-10-30 10:51:30.584628"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:51:30.600639"], ["updated_at", "2015-10-30 10:51:30.600639"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 10:51:30.609663"], ["updated_at", "2015-10-30 10:51:30.609663"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:30.620210"], ["updated_at", "2015-10-30 10:51:30.620210"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (2.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:30.646534"], ["updated_at", "2015-10-30 10:51:30.646534"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:51:30.655846"], ["updated_at", "2015-10-30 10:51:30.655846"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:30.666853"], ["updated_at", "2015-10-30 10:51:30.666853"]] [1m[35m (1.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.5ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 10:51:58.928652"], ["updated_at", "2015-10-30 10:51:58.928652"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:58.944172"], ["updated_at", "2015-10-30 10:51:58.944172"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.7ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:58.965728"], ["updated_at", "2015-10-30 10:51:58.965728"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:58.986769"], ["updated_at", "2015-10-30 10:51:58.986769"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:58.990364"], ["updated_at", "2015-10-30 10:51:58.990364"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.0ms) [1m[35m (8.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 10:51:59.029254"], ["updated_at", "2015-10-30 10:51:59.029254"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.032338"], ["updated_at", "2015-10-30 10:51:59.032338"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.043948"], ["updated_at", "2015-10-30 10:51:59.043948"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.047233"], ["updated_at", "2015-10-30 10:51:59.047233"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.054084"], ["updated_at", "2015-10-30 10:51:59.054084"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (12.6ms) Completed 200 OK in 16ms (Views: 13.2ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 10:51:59.080974"], ["updated_at", "2015-10-30 10:51:59.080974"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.083485"], ["updated_at", "2015-10-30 10:51:59.083485"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.6ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.102213"], ["updated_at", "2015-10-30 10:51:59.102213"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.112117"], ["updated_at", "2015-10-30 10:51:59.112117"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.117680"], ["updated_at", "2015-10-30 10:51:59.117680"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (3.9ms) Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.3ms) [1m[35m (1.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 10:51:59.140780"], ["updated_at", "2015-10-30 10:51:59.140780"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.143618"], ["updated_at", "2015-10-30 10:51:59.143618"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.158051"], ["updated_at", "2015-10-30 10:51:59.158051"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (1.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.168772"], ["updated_at", "2015-10-30 10:51:59.168772"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.178667"], ["updated_at", "2015-10-30 10:51:59.178667"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (1.8ms) Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms) [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 10:51:59.192519"], ["updated_at", "2015-10-30 10:51:59.192519"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.195345"], ["updated_at", "2015-10-30 10:51:59.195345"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (1.6ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.209339"], ["updated_at", "2015-10-30 10:51:59.209339"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.224465"], ["updated_at", "2015-10-30 10:51:59.224465"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.233172"], ["updated_at", "2015-10-30 10:51:59.233172"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 17ms (ActiveRecord: 0.5ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (11.4ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 10:51:59.438524"], ["updated_at", "2015-10-30 10:51:59.438524"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.441371"], ["updated_at", "2015-10-30 10:51:59.441371"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.444609"], ["updated_at", "2015-10-30 10:51:59.444609"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.448560"], ["updated_at", "2015-10-30 10:51:59.448560"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.452093"], ["updated_at", "2015-10-30 10:51:59.452093"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 10:51:59.461149"], ["updated_at", "2015-10-30 10:51:59.461149"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.463343"], ["updated_at", "2015-10-30 10:51:59.463343"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.467422"], ["updated_at", "2015-10-30 10:51:59.467422"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.473615"], ["updated_at", "2015-10-30 10:51:59.473615"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.478617"], ["updated_at", "2015-10-30 10:51:59.478617"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 26.5ms Sent mail to user7@sleede.com (7.2ms) Date: Fri, 30 Oct 2015 11:51:59 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56334bcf7d111_70bd3fc2c20601d416258@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser7
message body
[1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 10:51:59.522942"], ["updated_at", "2015-10-30 10:51:59.522942"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.529384"], ["updated_at", "2015-10-30 10:51:59.529384"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.534276"], ["updated_at", "2015-10-30 10:51:59.534276"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.539887"], ["updated_at", "2015-10-30 10:51:59.539887"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.542311"], ["updated_at", "2015-10-30 10:51:59.542311"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.0ms Sent mail to user8@sleede.com (2.2ms) Date: Fri, 30 Oct 2015 11:51:59 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56334bcf86018_70bd3fc2c20601d416359@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser8
message body
[1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 10:51:59.561149"], ["updated_at", "2015-10-30 10:51:59.561149"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.569347"], ["updated_at", "2015-10-30 10:51:59.569347"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.575986"], ["updated_at", "2015-10-30 10:51:59.575986"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.581858"], ["updated_at", "2015-10-30 10:51:59.581858"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (4.6ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.583717"], ["updated_at", "2015-10-30 10:51:59.583717"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 5.3ms Sent mail to user9@sleede.com (4.6ms) Date: Fri, 30 Oct 2015 11:51:59 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56334bcf93337_70bd3fc2c20601d4164ae@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser9
message body
[1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 10:51:59.611341"], ["updated_at", "2015-10-30 10:51:59.611341"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.613656"], ["updated_at", "2015-10-30 10:51:59.613656"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.619838"], ["updated_at", "2015-10-30 10:51:59.619838"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.8ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.630963"], ["updated_at", "2015-10-30 10:51:59.630963"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.644496"], ["updated_at", "2015-10-30 10:51:59.644496"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user10@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 11:51:59 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56334bcf9e7d9_70bd3fc2c20601d416550@mbp-sleede-nicolas.home.mail> Subject: translation missing: en.wupee.email_subjects.notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser10
message body
[1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.658514"], ["updated_at", "2015-10-30 10:51:59.658514"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 10:51:59.664923"], ["updated_at", "2015-10-30 10:51:59.664923"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.7ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.678685"], ["updated_at", "2015-10-30 10:51:59.678685"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.682039"], ["updated_at", "2015-10-30 10:51:59.682039"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.686754"], ["updated_at", "2015-10-30 10:51:59.686754"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.711780"], ["updated_at", "2015-10-30 10:51:59.711780"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 10:51:59.717720"], ["updated_at", "2015-10-30 10:51:59.717720"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.726283"], ["updated_at", "2015-10-30 10:51:59.726283"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.731351"], ["updated_at", "2015-10-30 10:51:59.731351"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 10:51:59.737124"], ["updated_at", "2015-10-30 10:51:59.737124"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:59.742987"], ["updated_at", "2015-10-30 10:51:59.742987"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.745775"], ["updated_at", "2015-10-30 10:51:59.745775"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.748717"], ["updated_at", "2015-10-30 10:51:59.748717"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.754861"], ["updated_at", "2015-10-30 10:51:59.754861"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 10:51:59.758846"], ["updated_at", "2015-10-30 10:51:59.758846"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.767867"], ["updated_at", "2015-10-30 10:51:59.767867"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.778601"], ["updated_at", "2015-10-30 10:51:59.778601"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 10:51:59.797515"], ["updated_at", "2015-10-30 10:51:59.797515"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:59.805385"], ["updated_at", "2015-10-30 10:51:59.805385"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.807140"], ["updated_at", "2015-10-30 10:51:59.807140"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.808858"], ["updated_at", "2015-10-30 10:51:59.808858"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.812831"], ["updated_at", "2015-10-30 10:51:59.812831"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 10:51:59.814543"], ["updated_at", "2015-10-30 10:51:59.814543"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.817428"], ["updated_at", "2015-10-30 10:51:59.817428"]] [1m[35m (0.7ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.838001"], ["updated_at", "2015-10-30 10:51:59.838001"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.854173"], ["updated_at", "2015-10-30 10:51:59.854173"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 10:51:59.862435"], ["updated_at", "2015-10-30 10:51:59.862435"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.876307"], ["updated_at", "2015-10-30 10:51:59.876307"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (1.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.891540"], ["updated_at", "2015-10-30 10:51:59.891540"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.903874"], ["updated_at", "2015-10-30 10:51:59.903874"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 10:51:59.906492"], ["updated_at", "2015-10-30 10:51:59.906492"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.909646"], ["updated_at", "2015-10-30 10:51:59.909646"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.918641"], ["updated_at", "2015-10-30 10:51:59.918641"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 10:51:59.922940"], ["updated_at", "2015-10-30 10:51:59.922940"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:59.928660"], ["updated_at", "2015-10-30 10:51:59.928660"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:51:59.932673"], ["updated_at", "2015-10-30 10:51:59.932673"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.937136"], ["updated_at", "2015-10-30 10:51:59.937136"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.944122"], ["updated_at", "2015-10-30 10:51:59.944122"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 10:51:59.946880"], ["updated_at", "2015-10-30 10:51:59.946880"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:51:59.950232"], ["updated_at", "2015-10-30 10:51:59.950232"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:51:59.970734"], ["updated_at", "2015-10-30 10:51:59.970734"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 10:51:59.974466"], ["updated_at", "2015-10-30 10:51:59.974466"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 10:51:59.982436"], ["updated_at", "2015-10-30 10:51:59.982436"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 10:51:59.984444"], ["updated_at", "2015-10-30 10:51:59.984444"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:51:59.987684"], ["updated_at", "2015-10-30 10:51:59.987684"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (1.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 10:51:59.996393"], ["updated_at", "2015-10-30 10:51:59.996393"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.022156"], ["updated_at", "2015-10-30 10:52:00.022156"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (2.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:52:00.034038"], ["updated_at", "2015-10-30 10:52:00.034038"]] [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.3ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 10:52:00.051322"], ["updated_at", "2015-10-30 10:52:00.051322"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.054799"], ["updated_at", "2015-10-30 10:52:00.054799"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:52:00.067029"], ["updated_at", "2015-10-30 10:52:00.067029"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.5ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 10:52:00.100136"], ["updated_at", "2015-10-30 10:52:00.100136"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.104409"], ["updated_at", "2015-10-30 10:52:00.104409"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:52:00.120207"], ["updated_at", "2015-10-30 10:52:00.120207"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 10:52:00.143288"], ["updated_at", "2015-10-30 10:52:00.143288"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.146017"], ["updated_at", "2015-10-30 10:52:00.146017"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:52:00.149238"], ["updated_at", "2015-10-30 10:52:00.149238"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (1.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 10:52:00.166920"], ["updated_at", "2015-10-30 10:52:00.166920"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.174715"], ["updated_at", "2015-10-30 10:52:00.174715"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (1.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:52:00.180761"], ["updated_at", "2015-10-30 10:52:00.180761"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.199620"], ["updated_at", "2015-10-30 10:52:00.199620"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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.2ms)[0m rollback transaction [1m[36m (1.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 10:52:00.236078"], ["updated_at", "2015-10-30 10:52:00.236078"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 10:52:00.240862"], ["updated_at", "2015-10-30 10:52:00.240862"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.243335"], ["updated_at", "2015-10-30 10:52:00.243335"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:52:00.246703"], ["updated_at", "2015-10-30 10:52:00.246703"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 10:52:00.250663"], ["updated_at", "2015-10-30 10:52:00.250663"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 10:52:00.264924"], ["updated_at", "2015-10-30 10:52:00.264924"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 10:52:00.268356"], ["updated_at", "2015-10-30 10:52:00.268356"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 10:52:00.277939"], ["updated_at", "2015-10-30 10:52:00.277939"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (3.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 10:52:00.309559"], ["updated_at", "2015-10-30 10:52:00.309559"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 10:52:00.315950"], ["updated_at", "2015-10-30 10:52:00.315950"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 10:52:00.320821"], ["updated_at", "2015-10-30 10:52:00.320821"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:10:53.918804"], ["updated_at", "2015-10-30 11:10:53.918804"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:10:53.942096"], ["updated_at", "2015-10-30 11:10:53.942096"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:10:53.962706"], ["updated_at", "2015-10-30 11:10:53.962706"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:10:53.969811"], ["updated_at", "2015-10-30 11:10:53.969811"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:10:53.972987"], ["updated_at", "2015-10-30 11:10:53.972987"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:10:53.981807"], ["updated_at", "2015-10-30 11:10:53.981807"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:10:53.984081"], ["updated_at", "2015-10-30 11:10:53.984081"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:10:53.992737"], ["updated_at", "2015-10-30 11:10:53.992737"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:10:53.997840"], ["updated_at", "2015-10-30 11:10:53.997840"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:10:54.001298"], ["updated_at", "2015-10-30 11:10:54.001298"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 8.1ms [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:10:54.020715"], ["updated_at", "2015-10-30 11:10:54.020715"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:10:54.024291"], ["updated_at", "2015-10-30 11:10:54.024291"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:10:54.029179"], ["updated_at", "2015-10-30 11:10:54.029179"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:10:54.036430"], ["updated_at", "2015-10-30 11:10:54.036430"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:10:54.041491"], ["updated_at", "2015-10-30 11:10:54.041491"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:10:54.048644"], ["updated_at", "2015-10-30 11:10:54.048644"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:10:54.050942"], ["updated_at", "2015-10-30 11:10:54.050942"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:10:54.054308"], ["updated_at", "2015-10-30 11:10:54.054308"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:10:54.055860"], ["updated_at", "2015-10-30 11:10:54.055860"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:10:54.057423"], ["updated_at", "2015-10-30 11:10:54.057423"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.4ms [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:10:54.063019"], ["updated_at", "2015-10-30 11:10:54.063019"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:10:54.065631"], ["updated_at", "2015-10-30 11:10:54.065631"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:10:54.074287"], ["updated_at", "2015-10-30 11:10:54.074287"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:10:54.080584"], ["updated_at", "2015-10-30 11:10:54.080584"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:10:54.086767"], ["updated_at", "2015-10-30 11:10:54.086767"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:11:16.491878"], ["updated_at", "2015-10-30 11:11:16.491878"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:11:16.515258"], ["updated_at", "2015-10-30 11:11:16.515258"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:11:16.532898"], ["updated_at", "2015-10-30 11:11:16.532898"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:11:16.538494"], ["updated_at", "2015-10-30 11:11:16.538494"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:11:16.540907"], ["updated_at", "2015-10-30 11:11:16.540907"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (9.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:11:16.556366"], ["updated_at", "2015-10-30 11:11:16.556366"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:11:16.558986"], ["updated_at", "2015-10-30 11:11:16.558986"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:11:16.569973"], ["updated_at", "2015-10-30 11:11:16.569973"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:11:16.573699"], ["updated_at", "2015-10-30 11:11:16.573699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:11:16.578012"], ["updated_at", "2015-10-30 11:11:16.578012"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 30.8ms [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:11:16.620575"], ["updated_at", "2015-10-30 11:11:16.620575"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:11:16.625335"], ["updated_at", "2015-10-30 11:11:16.625335"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:11:16.637627"], ["updated_at", "2015-10-30 11:11:16.637627"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:11:16.645459"], ["updated_at", "2015-10-30 11:11:16.645459"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:11:16.647459"], ["updated_at", "2015-10-30 11:11:16.647459"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.9ms [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:11:16.655597"], ["updated_at", "2015-10-30 11:11:16.655597"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:11:16.661509"], ["updated_at", "2015-10-30 11:11:16.661509"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:11:16.666907"], ["updated_at", "2015-10-30 11:11:16.666907"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:11:16.669152"], ["updated_at", "2015-10-30 11:11:16.669152"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:11:16.674286"], ["updated_at", "2015-10-30 11:11:16.674286"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:11:16.684345"], ["updated_at", "2015-10-30 11:11:16.684345"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:11:16.686630"], ["updated_at", "2015-10-30 11:11:16.686630"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:11:16.695191"], ["updated_at", "2015-10-30 11:11:16.695191"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:11:16.697675"], ["updated_at", "2015-10-30 11:11:16.697675"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:11:16.701509"], ["updated_at", "2015-10-30 11:11:16.701509"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 2.2ms [1m[36m (5.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (7.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:12:11.575825"], ["updated_at", "2015-10-30 11:12:11.575825"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:12:11.595730"], ["updated_at", "2015-10-30 11:12:11.595730"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:12:11.613142"], ["updated_at", "2015-10-30 11:12:11.613142"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:12:11.619720"], ["updated_at", "2015-10-30 11:12:11.619720"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:12:11.622530"], ["updated_at", "2015-10-30 11:12:11.622530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:12:11.637787"], ["updated_at", "2015-10-30 11:12:11.637787"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:12:11.640110"], ["updated_at", "2015-10-30 11:12:11.640110"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:12:11.647459"], ["updated_at", "2015-10-30 11:12:11.647459"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:12:11.652470"], ["updated_at", "2015-10-30 11:12:11.652470"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:12:11.654358"], ["updated_at", "2015-10-30 11:12:11.654358"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.7ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 32.2ms Sent mail to user2@sleede.com (11.6ms) Date: Fri, 30 Oct 2015 12:12:11 +0100 From: contact@sleede.com To: user2@sleede.com Message-ID: <5633508baa12f_71da3fdb8d8601d4707c3@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser2
message body
[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[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:12:11.704612"], ["updated_at", "2015-10-30 11:12:11.704612"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:12:11.706946"], ["updated_at", "2015-10-30 11:12:11.706946"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:12:11.710391"], ["updated_at", "2015-10-30 11:12:11.710391"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 11:12:11.714379"], ["updated_at", "2015-10-30 11:12:11.714379"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:12:11.719325"], ["updated_at", "2015-10-30 11:12:11.719325"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms Sent mail to user3@sleede.com (2.2ms) Date: Fri, 30 Oct 2015 12:12:11 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <5633508bb0a4a_71da3fdb8d8601d4708e@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:12:11.735474"], ["updated_at", "2015-10-30 11:12:11.735474"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:12:11.740127"], ["updated_at", "2015-10-30 11:12:11.740127"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:12:11.743277"], ["updated_at", "2015-10-30 11:12:11.743277"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:12:11.745020"], ["updated_at", "2015-10-30 11:12:11.745020"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:12:11.747414"], ["updated_at", "2015-10-30 11:12:11.747414"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.2ms Sent mail to user4@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 12:12:11 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <5633508bb8bb6_71da3fdb8d8601d4709f9@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:12:11.762165"], ["updated_at", "2015-10-30 11:12:11.762165"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:12:11.765204"], ["updated_at", "2015-10-30 11:12:11.765204"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:12:11.775723"], ["updated_at", "2015-10-30 11:12:11.775723"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 11:12:11.781612"], ["updated_at", "2015-10-30 11:12:11.781612"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:12:11.784109"], ["updated_at", "2015-10-30 11:12:11.784109"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.3ms Sent mail to user5@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 12:12:11 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <5633508bc137d_71da3fdb8d8601d471053@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (7.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:43.990171"], ["updated_at", "2015-10-30 11:13:43.990171"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:13:44.011090"], ["updated_at", "2015-10-30 11:13:44.011090"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:44.027149"], ["updated_at", "2015-10-30 11:13:44.027149"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:44.033385"], ["updated_at", "2015-10-30 11:13:44.033385"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:44.036550"], ["updated_at", "2015-10-30 11:13:44.036550"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:44.052586"], ["updated_at", "2015-10-30 11:13:44.052586"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:13:44.055574"], ["updated_at", "2015-10-30 11:13:44.055574"]] [1m[35m (1.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:44.063268"], ["updated_at", "2015-10-30 11:13:44.063268"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:44.067307"], ["updated_at", "2015-10-30 11:13:44.067307"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:44.073143"], ["updated_at", "2015-10-30 11:13:44.073143"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 3.9ms [1m[36m (2.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:44.089737"], ["updated_at", "2015-10-30 11:13:44.089737"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:13:44.093797"], ["updated_at", "2015-10-30 11:13:44.093797"]] [1m[35m (1.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:44.102922"], ["updated_at", "2015-10-30 11:13:44.102922"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:44.106985"], ["updated_at", "2015-10-30 11:13:44.106985"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:44.110979"], ["updated_at", "2015-10-30 11:13:44.110979"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:44.127320"], ["updated_at", "2015-10-30 11:13:44.127320"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:13:44.132071"], ["updated_at", "2015-10-30 11:13:44.132071"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:44.139831"], ["updated_at", "2015-10-30 11:13:44.139831"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:44.141706"], ["updated_at", "2015-10-30 11:13:44.141706"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:44.143829"], ["updated_at", "2015-10-30 11:13:44.143829"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:44.156410"], ["updated_at", "2015-10-30 11:13:44.156410"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:13:44.160963"], ["updated_at", "2015-10-30 11:13:44.160963"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:44.166663"], ["updated_at", "2015-10-30 11:13:44.166663"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:44.174115"], ["updated_at", "2015-10-30 11:13:44.174115"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:44.176947"], ["updated_at", "2015-10-30 11:13:44.176947"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:56.894242"], ["updated_at", "2015-10-30 11:13:56.894242"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 11:13:56.913330"], ["updated_at", "2015-10-30 11:13:56.913330"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:56.931015"], ["updated_at", "2015-10-30 11:13:56.931015"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:56.936710"], ["updated_at", "2015-10-30 11:13:56.936710"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:56.939392"], ["updated_at", "2015-10-30 11:13:56.939392"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:56.945144"], ["updated_at", "2015-10-30 11:13:56.945144"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 11:13:56.947343"], ["updated_at", "2015-10-30 11:13:56.947343"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:56.952563"], ["updated_at", "2015-10-30 11:13:56.952563"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:56.957727"], ["updated_at", "2015-10-30 11:13:56.957727"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:56.961359"], ["updated_at", "2015-10-30 11:13:56.961359"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.6ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 28.7ms Sent mail to user2@sleede.com (6.7ms) Date: Fri, 30 Oct 2015 12:13:56 +0100 From: contact@sleede.com To: user2@sleede.com Message-ID: <563350f4f3bac_71f53fd6a50601d895434@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser2
message body
[1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:57.008492"], ["updated_at", "2015-10-30 11:13:57.008492"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 11:13:57.019144"], ["updated_at", "2015-10-30 11:13:57.019144"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:57.025711"], ["updated_at", "2015-10-30 11:13:57.025711"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 11:13:57.030358"], ["updated_at", "2015-10-30 11:13:57.030358"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:57.033001"], ["updated_at", "2015-10-30 11:13:57.033001"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.9ms Sent mail to user3@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 12:13:57 +0100 From: contact@sleede.com To: user3@sleede.com Message-ID: <563350f59b00_71f53fd6a50601d895544@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser3
message body
[1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 11:13:57.046975"], ["updated_at", "2015-10-30 11:13:57.046975"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 11:13:57.050504"], ["updated_at", "2015-10-30 11:13:57.050504"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:57.059594"], ["updated_at", "2015-10-30 11:13:57.059594"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 11:13:57.064252"], ["updated_at", "2015-10-30 11:13:57.064252"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:57.070296"], ["updated_at", "2015-10-30 11:13:57.070296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (2.0ms) Date: Fri, 30 Oct 2015 12:13:57 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <563350f5120e8_71f53fd6a50601d8956b5@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser4
message body
[1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 11:13:57.086184"], ["updated_at", "2015-10-30 11:13:57.086184"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 11:13:57.091687"], ["updated_at", "2015-10-30 11:13:57.091687"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:13:57.099551"], ["updated_at", "2015-10-30 11:13:57.099551"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 11:13:57.101850"], ["updated_at", "2015-10-30 11:13:57.101850"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:13:57.105068"], ["updated_at", "2015-10-30 11:13:57.105068"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user5@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 12:13:57 +0100 From: contact@sleede.com To: user5@sleede.com Message-ID: <563350f51b067_71f53fd6a50601d8957d6@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bituser5
message body
[1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:25:12.106485"], ["updated_at", "2015-10-30 11:25:12.106485"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:25:12.132282"], ["updated_at", "2015-10-30 11:25:12.132282"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:25:12.138057"], ["updated_at", "2015-10-30 11:25:12.138057"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:25:12.142098"], ["updated_at", "2015-10-30 11:25:12.142098"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:25:12.148423"], ["updated_at", "2015-10-30 11:25:12.148423"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."receiver" = 2 AND "wupee_notification_types"."notification_type" IS NULL LIMIT 1[0m SQLite3::SQLException: no such column: wupee_notification_types.receiver: SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."receiver" = 2 AND "wupee_notification_types"."notification_type" IS NULL LIMIT 1 [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.5ms)[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.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:27:21.224383"], ["updated_at", "2015-10-30 11:27:21.224383"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:21.254958"], ["updated_at", "2015-10-30 11:27:21.254958"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:21.265071"], ["updated_at", "2015-10-30 11:27:21.265071"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:21.273160"], ["updated_at", "2015-10-30 11:27:21.273160"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:21.275910"], ["updated_at", "2015-10-30 11:27:21.275910"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.4ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" IS NULL LIMIT 1[0m [1m[35m (0.6ms)[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.3ms)[0m [1mbegin transaction[0m [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.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:27:52.896639"], ["updated_at", "2015-10-30 11:27:52.896639"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:52.922874"], ["updated_at", "2015-10-30 11:27:52.922874"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:52.927931"], ["updated_at", "2015-10-30 11:27:52.927931"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:52.933218"], ["updated_at", "2015-10-30 11:27:52.933218"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:27:52.935698"], ["updated_at", "2015-10-30 11:27:52.935698"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.6ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (1.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" IS NULL LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:08.529128"], ["updated_at", "2015-10-30 11:28:08.529128"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (7.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:08.555505"], ["updated_at", "2015-10-30 11:28:08.555505"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:08.561868"], ["updated_at", "2015-10-30 11:28:08.561868"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:08.565016"], ["updated_at", "2015-10-30 11:28:08.565016"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:08.566778"], ["updated_at", "2015-10-30 11:28:08.566778"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" IS NULL LIMIT 1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.3ms)[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.0ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:29.962185"], ["updated_at", "2015-10-30 11:28:29.962185"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (9.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:29.992159"], ["updated_at", "2015-10-30 11:28:29.992159"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:30.000745"], ["updated_at", "2015-10-30 11:28:30.000745"]] [1m[36m (0.8ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:30.010322"], ["updated_at", "2015-10-30 11:28:30.010322"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:30.013905"], ["updated_at", "2015-10-30 11:28:30.013905"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" IS NULL LIMIT 1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[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.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (7.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:42.273895"], ["updated_at", "2015-10-30 11:28:42.273895"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:42.300402"], ["updated_at", "2015-10-30 11:28:42.300402"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:28:42.319759"], ["updated_at", "2015-10-30 11:28:42.319759"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:42.354539"], ["updated_at", "2015-10-30 11:28:42.354539"]] [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 "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:42.356737"], ["updated_at", "2015-10-30 11:28:42.356737"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:42.364153"], ["updated_at", "2015-10-30 11:28:42.364153"]] [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 [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:28:42.365735"], ["updated_at", "2015-10-30 11:28:42.365735"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:42.368391"], ["updated_at", "2015-10-30 11:28:42.368391"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:42.369697"], ["updated_at", "2015-10-30 11:28:42.369697"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:42.371918"], ["updated_at", "2015-10-30 11:28:42.371918"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 11:28:42.378158"], ["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 11:28:42.383846"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 11:28:42.387960"], ["id", 4]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:56.929583"], ["updated_at", "2015-10-30 11:28:56.929583"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.5ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (9.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:28:56.957720"], ["updated_at", "2015-10-30 11:28:56.957720"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:28:56.962931"], ["updated_at", "2015-10-30 11:28:56.962931"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:57.007399"], ["updated_at", "2015-10-30 11:28:57.007399"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:57.010534"], ["updated_at", "2015-10-30 11:28:57.010534"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:57.016368"], ["updated_at", "2015-10-30 11:28:57.016368"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:28:57.017937"], ["updated_at", "2015-10-30 11:28:57.017937"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:57.020498"], ["updated_at", "2015-10-30 11:28:57.020498"]] [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 "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:28:57.021722"], ["updated_at", "2015-10-30 11:28:57.021722"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 11:28:57.024159"], ["updated_at", "2015-10-30 11:28:57.024159"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 11:28:57.037195"], ["id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 11:28:57.047954"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 11:28:57.052780"], ["id", 4]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:28:57.081471"], ["updated_at", "2015-10-30 11:28:57.081471"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (4.5ms) NotificationsMailer#send_mail_for: processed outbound mail in 35.3ms [1m[36m (0.7ms)[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.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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:29:35.265860"], ["updated_at", "2015-10-30 11:29:35.265860"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:29:35.291676"], ["updated_at", "2015-10-30 11:29:35.291676"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:29:35.296960"], ["updated_at", "2015-10-30 11:29:35.296960"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.6ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:29:35.341773"], ["updated_at", "2015-10-30 11:29:35.341773"]] [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 "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:29:35.345485"], ["updated_at", "2015-10-30 11:29:35.345485"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 11:29:35.356760"], ["updated_at", "2015-10-30 11:29:35.356760"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:29:35.359212"], ["updated_at", "2015-10-30 11:29:35.359212"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 11:29:35.366550"], ["updated_at", "2015-10-30 11:29:35.366550"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:29:35.372127"], ["updated_at", "2015-10-30 11:29:35.372127"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 11:29:35.380137"], ["updated_at", "2015-10-30 11:29:35.380137"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" [1m[36mWupee::NotificationType Load (7.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (1.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 11:29:35.519128"], ["id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 11:29:35.584833"], ["id", 3]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (1.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 11:29:35.606938"], ["id", 4]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:29:35.657762"], ["updated_at", "2015-10-30 11:29:35.657762"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (2.9ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 205.0ms [1m[35m (0.7ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:30:13.102741"], ["updated_at", "2015-10-30 11:30:13.102741"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (8.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 11:30:13.130712"], ["updated_at", "2015-10-30 11:30:13.130712"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:30:13.136401"], ["updated_at", "2015-10-30 11:30:13.136401"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 11:30:13.173604"], ["updated_at", "2015-10-30 11:30:13.173604"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:30:13.177728"], ["updated_at", "2015-10-30 11:30:13.177728"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 11:30:13.180520"], ["updated_at", "2015-10-30 11:30:13.180520"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-10-30 11:30:13.181612"], ["updated_at", "2015-10-30 11:30:13.181612"]] [1m[35m (0.6ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 11:30:13.192554"], ["updated_at", "2015-10-30 11:30:13.192554"]] [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 INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-30 11:30:13.194037"], ["updated_at", "2015-10-30 11:30:13.194037"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 11:30:13.196841"], ["updated_at", "2015-10-30 11:30:13.196841"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 11:30:13.221782"], ["id", 2]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 11:30:13.230020"], ["id", 3]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 11:30:13.237979"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 11:30:13.275724"], ["updated_at", "2015-10-30 11:30:13.275724"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.7ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 251.1ms Sent mail to (8.4ms) Date: Fri, 30 Oct 2015 12:30:13 +0100 From: contact@sleede.com Message-ID: <563354c583045_72db3fd79cc601d4268bf@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[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 rollback transaction [1m[36m (0.5ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 12:57:52.510029"], ["updated_at", "2015-10-30 12:57:52.510029"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 12:57:52.533983"], ["updated_at", "2015-10-30 12:57:52.533983"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 12:57:52.543782"], ["updated_at", "2015-10-30 12:57:52.543782"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 12:57:52.575793"], ["updated_at", "2015-10-30 12:57:52.575793"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 12:57:52.578779"], ["updated_at", "2015-10-30 12:57:52.578779"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 12:57:52.581643"], ["updated_at", "2015-10-30 12:57:52.581643"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 12:57:52.583082"], ["updated_at", "2015-10-30 12:57:52.583082"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 12:57:52.585344"], ["updated_at", "2015-10-30 12:57:52.585344"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 12:57:52.586986"], ["updated_at", "2015-10-30 12:57:52.586986"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 12:57:52.589585"], ["updated_at", "2015-10-30 12:57:52.589585"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 12:57:52.601025"], ["id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 12:57:52.605753"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 12:57:52.610685"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:57:52.631967"], ["updated_at", "2015-10-30 12:57:52.631967"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 172.8ms Sent mail to user1@sleede.com (6.9ms) Date: Fri, 30 Oct 2015 13:57:52 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336950c6c51_77553ff5e20601e0663a8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:57:52.818921"], ["updated_at", "2015-10-30 12:57:52.818921"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:57:52.820878"], ["updated_at", "2015-10-30 12:57:52.820878"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:57:52.822359"], ["updated_at", "2015-10-30 12:57:52.822359"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 13:57:52 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336950c9966_77553ff5e20601e066448@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:07.664818"], ["updated_at", "2015-10-30 12:58:07.664818"]] [1m[35m (0.7ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:07.704409"], ["updated_at", "2015-10-30 12:58:07.704409"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 12:58:07.713525"], ["updated_at", "2015-10-30 12:58:07.713525"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.6ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (1.0ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (8.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:07.745353"], ["updated_at", "2015-10-30 12:58:07.745353"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 12:58:07.772287"], ["updated_at", "2015-10-30 12:58:07.772287"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:07.776252"], ["updated_at", "2015-10-30 12:58:07.776252"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 12:58:07.779287"], ["updated_at", "2015-10-30 12:58:07.779287"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:07.782560"], ["updated_at", "2015-10-30 12:58:07.782560"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 12:58:07.784822"], ["updated_at", "2015-10-30 12:58:07.784822"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:07.788334"], ["updated_at", "2015-10-30 12:58:07.788334"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.4ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 12:58:07.796706"], ["id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 12:58:07.802613"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 12:58:07.806668"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:07.825988"], ["updated_at", "2015-10-30 12:58:07.825988"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 181.6ms Sent mail to user1@sleede.com (6.3ms) Date: Fri, 30 Oct 2015 13:58:08 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <563369603f2e_77593ff571c5e1d49601@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:08.019866"], ["updated_at", "2015-10-30 12:58:08.019866"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:08.021532"], ["updated_at", "2015-10-30 12:58:08.021532"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:08.024322"], ["updated_at", "2015-10-30 12:58:08.024322"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user4@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 13:58:08 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <563369606e2f_77593ff571c5e1d4961fb@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:25.485033"], ["updated_at", "2015-10-30 12:58:25.485033"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (8.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 12:58:25.510937"], ["updated_at", "2015-10-30 12:58:25.510937"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 12:58:25.526058"], ["updated_at", "2015-10-30 12:58:25.526058"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.9ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:25.559077"], ["updated_at", "2015-10-30 12:58:25.559077"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 12:58:25.563850"], ["updated_at", "2015-10-30 12:58:25.563850"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:25.578444"], ["updated_at", "2015-10-30 12:58:25.578444"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 12:58:25.580539"], ["updated_at", "2015-10-30 12:58:25.580539"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:25.588535"], ["updated_at", "2015-10-30 12:58:25.588535"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 12:58:25.593615"], ["updated_at", "2015-10-30 12:58:25.593615"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 12:58:25.596296"], ["updated_at", "2015-10-30 12:58:25.596296"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 12:58:25.605898"], ["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 12:58:25.610117"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 12:58:25.612925"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:25.625859"], ["updated_at", "2015-10-30 12:58:25.625859"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.8ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 160.7ms Sent mail to user1@sleede.com (7.1ms) Date: Fri, 30 Oct 2015 13:58:25 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336971c193e_775e3ff5b88601d05181@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:25.797514"], ["updated_at", "2015-10-30 12:58:25.797514"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:25.799289"], ["updated_at", "2015-10-30 12:58:25.799289"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:25.800776"], ["updated_at", "2015-10-30 12:58:25.800776"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 13:58:25 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336971c44af_775e3ff5b88601d051942@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:25.810471"], ["updated_at", "2015-10-30 12:58:25.810471"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user1@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 13:58:25 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336971c6935_775e3ff5b88601d0520da@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:25.814797"], ["updated_at", "2015-10-30 12:58:25.814797"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:25.817032"], ["updated_at", "2015-10-30 12:58:25.817032"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:25.819255"], ["updated_at", "2015-10-30 12:58:25.819255"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user4@sleede.com (1.8ms) Date: Fri, 30 Oct 2015 13:58:25 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336971c8f0a_775e3ff5b88601d0521aa@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:25.828742"], ["updated_at", "2015-10-30 12:58:25.828742"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user1@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 13:58:25 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336971cb08d_775e3ff5b88601d05226@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:25.833169"], ["updated_at", "2015-10-30 12:58:25.833169"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 12:58:25.834620"], ["updated_at", "2015-10-30 12:58:25.834620"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 12:58:25.835821"], ["updated_at", "2015-10-30 12:58:25.835821"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 2.7ms Sent mail to user4@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 13:58:25 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336971cd36e_775e3ff5b88601d052348@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.7ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:17.145620"], ["updated_at", "2015-10-30 13:01:17.145620"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.4ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:17.167791"], ["updated_at", "2015-10-30 13:01:17.167791"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:01:17.175741"], ["updated_at", "2015-10-30 13:01:17.175741"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:17.215039"], ["updated_at", "2015-10-30 13:01:17.215039"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:01:17.219810"], ["updated_at", "2015-10-30 13:01:17.219810"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:17.222664"], ["updated_at", "2015-10-30 13:01:17.222664"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:01:17.224096"], ["updated_at", "2015-10-30 13:01:17.224096"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:17.228425"], ["updated_at", "2015-10-30 13:01:17.228425"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:01:17.230277"], ["updated_at", "2015-10-30 13:01:17.230277"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:17.232905"], ["updated_at", "2015-10-30 13:01:17.232905"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 13:01:17.241369"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 13:01:17.249961"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 13:01:17.258980"], ["id", 4]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:17.282001"], ["updated_at", "2015-10-30 13:01:17.282001"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 163.1ms Sent mail to user1@sleede.com (6.5ms) Date: Fri, 30 Oct 2015 14:01:17 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336a1d6e93a_77883fc7adc601d866bf@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:17.456547"], ["updated_at", "2015-10-30 13:01:17.456547"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:17.458217"], ["updated_at", "2015-10-30 13:01:17.458217"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:17.459913"], ["updated_at", "2015-10-30 13:01:17.459913"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user4@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:01:17 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336a1d710ad_77883fc7adc601d8674f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:17.466956"], ["updated_at", "2015-10-30 13:01:17.466956"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user1@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:01:17 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336a1d72b16_77883fc7adc601d868e1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:17.471221"], ["updated_at", "2015-10-30 13:01:17.471221"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:17.473023"], ["updated_at", "2015-10-30 13:01:17.473023"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:17.474632"], ["updated_at", "2015-10-30 13:01:17.474632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user4@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 14:01:17 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336a1d74ab7_77883fc7adc601d8698f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:17.482358"], ["updated_at", "2015-10-30 13:01:17.482358"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user1@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:01:17 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336a1d76795_77883fc7adc601d870af@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:17.486671"], ["updated_at", "2015-10-30 13:01:17.486671"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:17.488045"], ["updated_at", "2015-10-30 13:01:17.488045"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:17.489357"], ["updated_at", "2015-10-30 13:01:17.489357"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user4@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 14:01:17 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336a1d78166_77883fc7adc601d8717b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:26.006650"], ["updated_at", "2015-10-30 13:01:26.006650"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:26.024669"], ["updated_at", "2015-10-30 13:01:26.024669"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:01:26.034218"], ["updated_at", "2015-10-30 13:01:26.034218"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.5ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:26.072479"], ["updated_at", "2015-10-30 13:01:26.072479"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:01:26.077564"], ["updated_at", "2015-10-30 13:01:26.077564"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:26.080461"], ["updated_at", "2015-10-30 13:01:26.080461"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:01:26.081908"], ["updated_at", "2015-10-30 13:01:26.081908"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:26.084087"], ["updated_at", "2015-10-30 13:01:26.084087"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:01:26.087854"], ["updated_at", "2015-10-30 13:01:26.087854"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:26.091706"], ["updated_at", "2015-10-30 13:01:26.091706"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 13:01:26.097827"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 13:01:26.102755"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 13:01:26.112112"], ["id", 4]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:26.132551"], ["updated_at", "2015-10-30 13:01:26.132551"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 162.7ms Sent mail to user1@sleede.com (6.6ms) Date: Fri, 30 Oct 2015 14:01:26 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336a264a12c_778b3fea5d0601d090326@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:26.307090"], ["updated_at", "2015-10-30 13:01:26.307090"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:26.308825"], ["updated_at", "2015-10-30 13:01:26.308825"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:26.310323"], ["updated_at", "2015-10-30 13:01:26.310323"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 14:01:26 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336a264c998_778b3fea5d0601d09049@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:26.317976"], ["updated_at", "2015-10-30 13:01:26.317976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user1@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:01:26 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336a264e598_778b3fea5d0601d090572@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:26.322391"], ["updated_at", "2015-10-30 13:01:26.322391"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:26.323828"], ["updated_at", "2015-10-30 13:01:26.323828"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:26.325459"], ["updated_at", "2015-10-30 13:01:26.325459"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user4@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:01:26 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336a26505e3_778b3fea5d0601d09065e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:26.332862"], ["updated_at", "2015-10-30 13:01:26.332862"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user1@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:01:26 +0100 From: contact@sleede.com To: user1@sleede.com Message-ID: <56336a2651ec5_778b3fea5d0601d090738@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:26.336929"], ["updated_at", "2015-10-30 13:01:26.336929"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:26.338250"], ["updated_at", "2015-10-30 13:01:26.338250"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:26.339439"], ["updated_at", "2015-10-30 13:01:26.339439"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user4@sleede.com (1.1ms) Date: Fri, 30 Oct 2015 14:01:26 +0100 From: contact@sleede.com To: user4@sleede.com Message-ID: <56336a2653788_778b3fea5d0601d09083c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.6ms)[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.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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:01:31.654521"], ["updated_at", "2015-10-30 13:01:31.654521"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:31.668411"], ["updated_at", "2015-10-30 13:01:31.668411"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:31.689830"], ["updated_at", "2015-10-30 13:01:31.689830"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:31.705007"], ["updated_at", "2015-10-30 13:01:31.705007"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:31.712151"], ["updated_at", "2015-10-30 13:01:31.712151"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 10.0ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:01:31.750723"], ["updated_at", "2015-10-30 13:01:31.750723"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:31.753164"], ["updated_at", "2015-10-30 13:01:31.753164"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:31.756541"], ["updated_at", "2015-10-30 13:01:31.756541"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:31.764804"], ["updated_at", "2015-10-30 13:01:31.764804"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:31.768942"], ["updated_at", "2015-10-30 13:01:31.768942"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.4ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (23.9ms) Completed 200 OK in 28ms (Views: 24.8ms | ActiveRecord: 1.1ms) [1m[35m (1.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:01:31.812518"], ["updated_at", "2015-10-30 13:01:31.812518"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:31.815361"], ["updated_at", "2015-10-30 13:01:31.815361"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:31.819490"], ["updated_at", "2015-10-30 13:01:31.819490"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:31.826909"], ["updated_at", "2015-10-30 13:01:31.826909"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:31.831783"], ["updated_at", "2015-10-30 13:01:31.831783"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (6.1ms) Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.7ms) [1m[35m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:01:31.855129"], ["updated_at", "2015-10-30 13:01:31.855129"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:31.858051"], ["updated_at", "2015-10-30 13:01:31.858051"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:31.861896"], ["updated_at", "2015-10-30 13:01:31.861896"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:31.868976"], ["updated_at", "2015-10-30 13:01:31.868976"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:31.877177"], ["updated_at", "2015-10-30 13:01:31.877177"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (1.8ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 13:01:31.893442"], ["updated_at", "2015-10-30 13:01:31.893442"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:31.898515"], ["updated_at", "2015-10-30 13:01:31.898515"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:31.905680"], ["updated_at", "2015-10-30 13:01:31.905680"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:31.915492"], ["updated_at", "2015-10-30 13:01:31.915492"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:31.918107"], ["updated_at", "2015-10-30 13:01:31.918107"]] [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 23ms (ActiveRecord: 0.3ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:01:32.111584"], ["updated_at", "2015-10-30 13:01:32.111584"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:01:32.114376"], ["updated_at", "2015-10-30 13:01:32.114376"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.118270"], ["updated_at", "2015-10-30 13:01:32.118270"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.120387"], ["updated_at", "2015-10-30 13:01:32.120387"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.123893"], ["updated_at", "2015-10-30 13:01:32.123893"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:01:32.136055"], ["updated_at", "2015-10-30 13:01:32.136055"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:01:32.138744"], ["updated_at", "2015-10-30 13:01:32.138744"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.142168"], ["updated_at", "2015-10-30 13:01:32.142168"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.144281"], ["updated_at", "2015-10-30 13:01:32.144281"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.145881"], ["updated_at", "2015-10-30 13:01:32.145881"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.5ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 24.1ms Sent mail to user7@sleede.com (8.8ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56336a2c2b0ed_778f3fc2d90601e052460@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:01:32.189210"], ["updated_at", "2015-10-30 13:01:32.189210"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (6.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 13:01:32.200831"], ["updated_at", "2015-10-30 13:01:32.200831"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.207190"], ["updated_at", "2015-10-30 13:01:32.207190"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:32.212157"], ["updated_at", "2015-10-30 13:01:32.212157"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.218050"], ["updated_at", "2015-10-30 13:01:32.218050"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.8ms Sent mail to user8@sleede.com (3.8ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56336a2c37be4_778f3fc2d90601e05251@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:01:32.236365"], ["updated_at", "2015-10-30 13:01:32.236365"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:01:32.238402"], ["updated_at", "2015-10-30 13:01:32.238402"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.241435"], ["updated_at", "2015-10-30 13:01:32.241435"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.244714"], ["updated_at", "2015-10-30 13:01:32.244714"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.248339"], ["updated_at", "2015-10-30 13:01:32.248339"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.9ms Sent mail to user9@sleede.com (4.9ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56336a2c3efcc_778f3fc2d90601e0526af@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:01:32.268630"], ["updated_at", "2015-10-30 13:01:32.268630"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 13:01:32.271044"], ["updated_at", "2015-10-30 13:01:32.271044"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.277096"], ["updated_at", "2015-10-30 13:01:32.277096"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:32.281187"], ["updated_at", "2015-10-30 13:01:32.281187"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.284423"], ["updated_at", "2015-10-30 13:01:32.284423"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.2ms) [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.4ms Sent mail to user10@sleede.com (2.4ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56336a2c47384_778f3fc2d90601e052732@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.298844"], ["updated_at", "2015-10-30 13:01:32.298844"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:01:32.300819"], ["updated_at", "2015-10-30 13:01:32.300819"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.4ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (1.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.318456"], ["updated_at", "2015-10-30 13:01:32.318456"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.333645"], ["updated_at", "2015-10-30 13:01:32.333645"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.339026"], ["updated_at", "2015-10-30 13:01:32.339026"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.352507"], ["updated_at", "2015-10-30 13:01:32.352507"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:01:32.354498"], ["updated_at", "2015-10-30 13:01:32.354498"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.356934"], ["updated_at", "2015-10-30 13:01:32.356934"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (2.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.363595"], ["updated_at", "2015-10-30 13:01:32.363595"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:01:32.372438"], ["updated_at", "2015-10-30 13:01:32.372438"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.378103"], ["updated_at", "2015-10-30 13:01:32.378103"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.379811"], ["updated_at", "2015-10-30 13:01:32.379811"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.384914"], ["updated_at", "2015-10-30 13:01:32.384914"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.396550"], ["updated_at", "2015-10-30 13:01:32.396550"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:01:32.400085"], ["updated_at", "2015-10-30 13:01:32.400085"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.404641"], ["updated_at", "2015-10-30 13:01:32.404641"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.413581"], ["updated_at", "2015-10-30 13:01:32.413581"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:01:32.415639"], ["updated_at", "2015-10-30 13:01:32.415639"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.418539"], ["updated_at", "2015-10-30 13:01:32.418539"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.424725"], ["updated_at", "2015-10-30 13:01:32.424725"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.434395"], ["updated_at", "2015-10-30 13:01:32.434395"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.438872"], ["updated_at", "2015-10-30 13:01:32.438872"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:01:32.440943"], ["updated_at", "2015-10-30 13:01:32.440943"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.444100"], ["updated_at", "2015-10-30 13:01:32.444100"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.456028"], ["updated_at", "2015-10-30 13:01:32.456028"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:32.472416"], ["updated_at", "2015-10-30 13:01:32.472416"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 13:01:32.474310"], ["updated_at", "2015-10-30 13:01:32.474310"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.477724"], ["updated_at", "2015-10-30 13:01:32.477724"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.480389"], ["updated_at", "2015-10-30 13:01:32.480389"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.498938"], ["updated_at", "2015-10-30 13:01:32.498938"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:01:32.505377"], ["updated_at", "2015-10-30 13:01:32.505377"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.516100"], ["updated_at", "2015-10-30 13:01:32.516100"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.523529"], ["updated_at", "2015-10-30 13:01:32.523529"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:01:32.527994"], ["updated_at", "2015-10-30 13:01:32.527994"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.535241"], ["updated_at", "2015-10-30 13:01:32.535241"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.538450"], ["updated_at", "2015-10-30 13:01:32.538450"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.543092"], ["updated_at", "2015-10-30 13:01:32.543092"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:32.552062"], ["updated_at", "2015-10-30 13:01:32.552062"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 13:01:32.553791"], ["updated_at", "2015-10-30 13:01:32.553791"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.556620"], ["updated_at", "2015-10-30 13:01:32.556620"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.573384"], ["updated_at", "2015-10-30 13:01:32.573384"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 13:01:32.581750"], ["updated_at", "2015-10-30 13:01:32.581750"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.588436"], ["updated_at", "2015-10-30 13:01:32.588436"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:01:32.590090"], ["updated_at", "2015-10-30 13:01:32.590090"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.591889"], ["updated_at", "2015-10-30 13:01:32.591889"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 13:01:32.599525"], ["updated_at", "2015-10-30 13:01:32.599525"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.604744"], ["updated_at", "2015-10-30 13:01:32.604744"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (4.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.616743"], ["updated_at", "2015-10-30 13:01:32.616743"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (6.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.7ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:01:32.639368"], ["updated_at", "2015-10-30 13:01:32.639368"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.645835"], ["updated_at", "2015-10-30 13:01:32.645835"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.649196"], ["updated_at", "2015-10-30 13:01:32.649196"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 13:01:32.662913"], ["updated_at", "2015-10-30 13:01:32.662913"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.667125"], ["updated_at", "2015-10-30 13:01:32.667125"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.674617"], ["updated_at", "2015-10-30 13:01:32.674617"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (4.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 13:01:32.687985"], ["updated_at", "2015-10-30 13:01:32.687985"]] [1m[36m (1.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.704250"], ["updated_at", "2015-10-30 13:01:32.704250"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.707552"], ["updated_at", "2015-10-30 13:01:32.707552"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 13:01:32.712656"], ["updated_at", "2015-10-30 13:01:32.712656"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.718768"], ["updated_at", "2015-10-30 13:01:32.718768"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.730195"], ["updated_at", "2015-10-30 13:01:32.730195"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.740458"], ["updated_at", "2015-10-30 13:01:32.740458"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.747561"], ["updated_at", "2015-10-30 13:01:32.747561"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:01:32.759053"], ["updated_at", "2015-10-30 13:01:32.759053"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.769371"], ["updated_at", "2015-10-30 13:01:32.769371"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 13:01:32.776376"], ["updated_at", "2015-10-30 13:01:32.776376"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.782191"], ["updated_at", "2015-10-30 13:01:32.782191"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:01:32.783864"], ["updated_at", "2015-10-30 13:01:32.783864"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.786480"], ["updated_at", "2015-10-30 13:01:32.786480"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 13:01:32.789393"], ["updated_at", "2015-10-30 13:01:32.789393"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.794538"], ["updated_at", "2015-10-30 13:01:32.794538"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 13:01:32.804107"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 13:01:32.808070"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 13:01:32.811482"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.823425"], ["updated_at", "2015-10-30 13:01:32.823425"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 12.6ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a2cccfd2_778f3fc2d90601e0528c4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:32.841269"], ["updated_at", "2015-10-30 13:01:32.841269"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:32.842786"], ["updated_at", "2015-10-30 13:01:32.842786"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.844914"], ["updated_at", "2015-10-30 13:01:32.844914"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a2ccef47_778f3fc2d90601e052976@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.851119"], ["updated_at", "2015-10-30 13:01:32.851119"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a2cd078f_778f3fc2d90601e053061@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:32.855233"], ["updated_at", "2015-10-30 13:01:32.855233"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:32.856507"], ["updated_at", "2015-10-30 13:01:32.856507"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.858543"], ["updated_at", "2015-10-30 13:01:32.858543"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 2.0ms Sent mail to user30@sleede.com (2.7ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a2cd2bf8_778f3fc2d90601e0531ce@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.869166"], ["updated_at", "2015-10-30 13:01:32.869166"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a2cd4e49_778f3fc2d90601e05325d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:32.873311"], ["updated_at", "2015-10-30 13:01:32.873311"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:01:32.874561"], ["updated_at", "2015-10-30 13:01:32.874561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.875702"], ["updated_at", "2015-10-30 13:01:32.875702"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:01:32 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a2cd68b9_778f3fc2d90601e0533e7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 13:01:32.888079"], ["updated_at", "2015-10-30 13:01:32.888079"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:01:32.895842"], ["updated_at", "2015-10-30 13:01:32.895842"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.903197"], ["updated_at", "2015-10-30 13:01:32.903197"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.907930"], ["updated_at", "2015-10-30 13:01:32.907930"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:01:32.913346"], ["updated_at", "2015-10-30 13:01:32.913346"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 13:01:32.926956"], ["updated_at", "2015-10-30 13:01:32.926956"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:01:32.930418"], ["updated_at", "2015-10-30 13:01:32.930418"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:01:32.946523"], ["updated_at", "2015-10-30 13:01:32.946523"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.9ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.7ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:01:32.981382"], ["updated_at", "2015-10-30 13:01:32.981382"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 13:01:32.984364"], ["updated_at", "2015-10-30 13:01:32.984364"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.4ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:01:32.998346"], ["updated_at", "2015-10-30 13:01:32.998346"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:02:29.265372"], ["updated_at", "2015-10-30 13:02:29.265372"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.281855"], ["updated_at", "2015-10-30 13:02:29.281855"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.310084"], ["updated_at", "2015-10-30 13:02:29.310084"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:29.331274"], ["updated_at", "2015-10-30 13:02:29.331274"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.334980"], ["updated_at", "2015-10-30 13:02:29.334980"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 11.6ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:02:29.375211"], ["updated_at", "2015-10-30 13:02:29.375211"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:29.377908"], ["updated_at", "2015-10-30 13:02:29.377908"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.386064"], ["updated_at", "2015-10-30 13:02:29.386064"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:29.391347"], ["updated_at", "2015-10-30 13:02:29.391347"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.393622"], ["updated_at", "2015-10-30 13:02:29.393622"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.6ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (14.6ms) Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.5ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:02:29.424955"], ["updated_at", "2015-10-30 13:02:29.424955"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:29.433649"], ["updated_at", "2015-10-30 13:02:29.433649"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.439433"], ["updated_at", "2015-10-30 13:02:29.439433"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:29.446124"], ["updated_at", "2015-10-30 13:02:29.446124"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.448901"], ["updated_at", "2015-10-30 13:02:29.448901"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.5ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (9.3ms) Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.8ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:02:29.473899"], ["updated_at", "2015-10-30 13:02:29.473899"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:29.476481"], ["updated_at", "2015-10-30 13:02:29.476481"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.481899"], ["updated_at", "2015-10-30 13:02:29.481899"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:29.496766"], ["updated_at", "2015-10-30 13:02:29.496766"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.502402"], ["updated_at", "2015-10-30 13:02:29.502402"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (1.9ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 13:02:29.518041"], ["updated_at", "2015-10-30 13:02:29.518041"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.521918"], ["updated_at", "2015-10-30 13:02:29.521918"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.527467"], ["updated_at", "2015-10-30 13:02:29.527467"]] [1m[35m (4.7ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:29.543883"], ["updated_at", "2015-10-30 13:02:29.543883"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.558302"], ["updated_at", "2015-10-30 13:02:29.558302"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 9ms (ActiveRecord: 0.3ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:02:29.748022"], ["updated_at", "2015-10-30 13:02:29.748022"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:02:29.750958"], ["updated_at", "2015-10-30 13:02:29.750958"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:29.754948"], ["updated_at", "2015-10-30 13:02:29.754948"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.759460"], ["updated_at", "2015-10-30 13:02:29.759460"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.764121"], ["updated_at", "2015-10-30 13:02:29.764121"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:02:29.773063"], ["updated_at", "2015-10-30 13:02:29.773063"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:02:29.775435"], ["updated_at", "2015-10-30 13:02:29.775435"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:29.784962"], ["updated_at", "2015-10-30 13:02:29.784962"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.787138"], ["updated_at", "2015-10-30 13:02:29.787138"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.793414"], ["updated_at", "2015-10-30 13:02:29.793414"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.7ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 22.3ms Sent mail to user7@sleede.com (8.2ms) Date: Fri, 30 Oct 2015 14:02:29 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56336a65c96df_779c3fd5e50521d472334@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:02:29.834081"], ["updated_at", "2015-10-30 13:02:29.834081"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 13:02:29.847824"], ["updated_at", "2015-10-30 13:02:29.847824"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:29.852611"], ["updated_at", "2015-10-30 13:02:29.852611"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:29.857014"], ["updated_at", "2015-10-30 13:02:29.857014"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.860070"], ["updated_at", "2015-10-30 13:02:29.860070"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user8@sleede.com (6.5ms) Date: Fri, 30 Oct 2015 14:02:29 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56336a65d3500_779c3fd5e50521d4724b@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:02:29.876290"], ["updated_at", "2015-10-30 13:02:29.876290"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:02:29.879512"], ["updated_at", "2015-10-30 13:02:29.879512"]] [1m[35m (0.7ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:29.900163"], ["updated_at", "2015-10-30 13:02:29.900163"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.907220"], ["updated_at", "2015-10-30 13:02:29.907220"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.908690"], ["updated_at", "2015-10-30 13:02:29.908690"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user9@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 14:02:29 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56336a65dea52_779c3fd5e50521d472579@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:02:29.917369"], ["updated_at", "2015-10-30 13:02:29.917369"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 13:02:29.919844"], ["updated_at", "2015-10-30 13:02:29.919844"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:29.928646"], ["updated_at", "2015-10-30 13:02:29.928646"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:29.937813"], ["updated_at", "2015-10-30 13:02:29.937813"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.939929"], ["updated_at", "2015-10-30 13:02:29.939929"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.1ms Sent mail to user10@sleede.com (2.0ms) Date: Fri, 30 Oct 2015 14:02:29 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56336a65e706a_779c3fd5e50521d47265f@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:29.956379"], ["updated_at", "2015-10-30 13:02:29.956379"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:02:29.963425"], ["updated_at", "2015-10-30 13:02:29.963425"]] [1m[35m (1.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:29.974017"], ["updated_at", "2015-10-30 13:02:29.974017"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:29.980216"], ["updated_at", "2015-10-30 13:02:29.980216"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:29.983686"], ["updated_at", "2015-10-30 13:02:29.983686"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.002922"], ["updated_at", "2015-10-30 13:02:30.002922"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:02:30.009856"], ["updated_at", "2015-10-30 13:02:30.009856"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.017361"], ["updated_at", "2015-10-30 13:02:30.017361"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.022730"], ["updated_at", "2015-10-30 13:02:30.022730"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:02:30.027982"], ["updated_at", "2015-10-30 13:02:30.027982"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.032975"], ["updated_at", "2015-10-30 13:02:30.032975"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.034685"], ["updated_at", "2015-10-30 13:02:30.034685"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.042267"], ["updated_at", "2015-10-30 13:02:30.042267"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.048406"], ["updated_at", "2015-10-30 13:02:30.048406"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:02:30.052156"], ["updated_at", "2015-10-30 13:02:30.052156"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.057074"], ["updated_at", "2015-10-30 13:02:30.057074"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.061598"], ["updated_at", "2015-10-30 13:02:30.061598"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:02:30.073745"], ["updated_at", "2015-10-30 13:02:30.073745"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.082196"], ["updated_at", "2015-10-30 13:02:30.082196"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.086863"], ["updated_at", "2015-10-30 13:02:30.086863"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.089048"], ["updated_at", "2015-10-30 13:02:30.089048"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.093366"], ["updated_at", "2015-10-30 13:02:30.093366"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:02:30.095826"], ["updated_at", "2015-10-30 13:02:30.095826"]] [1m[35m (2.7ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.109460"], ["updated_at", "2015-10-30 13:02:30.109460"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.119615"], ["updated_at", "2015-10-30 13:02:30.119615"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:30.127797"], ["updated_at", "2015-10-30 13:02:30.127797"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 13:02:30.130092"], ["updated_at", "2015-10-30 13:02:30.130092"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.141773"], ["updated_at", "2015-10-30 13:02:30.141773"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.149438"], ["updated_at", "2015-10-30 13:02:30.149438"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.155815"], ["updated_at", "2015-10-30 13:02:30.155815"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:02:30.157999"], ["updated_at", "2015-10-30 13:02:30.157999"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.160368"], ["updated_at", "2015-10-30 13:02:30.160368"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.162425"], ["updated_at", "2015-10-30 13:02:30.162425"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:02:30.167726"], ["updated_at", "2015-10-30 13:02:30.167726"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.171751"], ["updated_at", "2015-10-30 13:02:30.171751"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.175909"], ["updated_at", "2015-10-30 13:02:30.175909"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.181713"], ["updated_at", "2015-10-30 13:02:30.181713"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:30.187188"], ["updated_at", "2015-10-30 13:02:30.187188"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 13:02:30.193110"], ["updated_at", "2015-10-30 13:02:30.193110"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.202808"], ["updated_at", "2015-10-30 13:02:30.202808"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.206301"], ["updated_at", "2015-10-30 13:02:30.206301"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 13:02:30.212536"], ["updated_at", "2015-10-30 13:02:30.212536"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.5ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.216890"], ["updated_at", "2015-10-30 13:02:30.216890"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:02:30.218439"], ["updated_at", "2015-10-30 13:02:30.218439"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.220743"], ["updated_at", "2015-10-30 13:02:30.220743"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 13:02:30.224536"], ["updated_at", "2015-10-30 13:02:30.224536"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.238099"], ["updated_at", "2015-10-30 13:02:30.238099"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.244198"], ["updated_at", "2015-10-30 13:02:30.244198"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:02:30.258624"], ["updated_at", "2015-10-30 13:02:30.258624"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.266180"], ["updated_at", "2015-10-30 13:02:30.266180"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.268901"], ["updated_at", "2015-10-30 13:02:30.268901"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 13:02:30.275249"], ["updated_at", "2015-10-30 13:02:30.275249"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.280970"], ["updated_at", "2015-10-30 13:02:30.280970"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.283949"], ["updated_at", "2015-10-30 13:02:30.283949"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (3.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 13:02:30.305896"], ["updated_at", "2015-10-30 13:02:30.305896"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.309195"], ["updated_at", "2015-10-30 13:02:30.309195"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.317395"], ["updated_at", "2015-10-30 13:02:30.317395"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 13:02:30.323677"], ["updated_at", "2015-10-30 13:02:30.323677"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.7ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.331253"], ["updated_at", "2015-10-30 13:02:30.331253"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.343287"], ["updated_at", "2015-10-30 13:02:30.343287"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.359940"], ["updated_at", "2015-10-30 13:02:30.359940"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.366495"], ["updated_at", "2015-10-30 13:02:30.366495"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:02:30.368745"], ["updated_at", "2015-10-30 13:02:30.368745"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.372169"], ["updated_at", "2015-10-30 13:02:30.372169"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 13:02:30.373929"], ["updated_at", "2015-10-30 13:02:30.373929"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.379013"], ["updated_at", "2015-10-30 13:02:30.379013"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:02:30.380448"], ["updated_at", "2015-10-30 13:02:30.380448"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.386940"], ["updated_at", "2015-10-30 13:02:30.386940"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 13:02:30.389398"], ["updated_at", "2015-10-30 13:02:30.389398"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.392202"], ["updated_at", "2015-10-30 13:02:30.392202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 13:02:30.395953"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.4ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.4ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 13:02:30.408580"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 13:02:30.416242"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.422966"], ["updated_at", "2015-10-30 13:02:30.422966"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 13.4ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 14:02:30 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a666b096_779c3fd5e50521d4727ad@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:02:30.440068"], ["updated_at", "2015-10-30 13:02:30.440068"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:02:30.441635"], ["updated_at", "2015-10-30 13:02:30.441635"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.442911"], ["updated_at", "2015-10-30 13:02:30.442911"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user30@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 14:02:30 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a666ce92_779c3fd5e50521d472836@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.450102"], ["updated_at", "2015-10-30 13:02:30.450102"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:02:30 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a666e901_779c3fd5e50521d4729f0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:02:30.454182"], ["updated_at", "2015-10-30 13:02:30.454182"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:02:30.455522"], ["updated_at", "2015-10-30 13:02:30.455522"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.456757"], ["updated_at", "2015-10-30 13:02:30.456757"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:02:30 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a66701bb_779c3fd5e50521d473084@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.464991"], ["updated_at", "2015-10-30 13:02:30.464991"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:02:30 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a66723d2_779c3fd5e50521d47313a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:02:30.469311"], ["updated_at", "2015-10-30 13:02:30.469311"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:02:30.471322"], ["updated_at", "2015-10-30 13:02:30.471322"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.472755"], ["updated_at", "2015-10-30 13:02:30.472755"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:02:30 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a66740d0_779c3fd5e50521d473284@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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.1ms)[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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 13:02:30.486548"], ["updated_at", "2015-10-30 13:02:30.486548"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:02:30.492873"], ["updated_at", "2015-10-30 13:02:30.492873"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.497148"], ["updated_at", "2015-10-30 13:02:30.497148"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.501009"], ["updated_at", "2015-10-30 13:02:30.501009"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:02:30.503026"], ["updated_at", "2015-10-30 13:02:30.503026"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.6ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (2.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 13:02:30.520373"], ["updated_at", "2015-10-30 13:02:30.520373"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:02:30.523210"], ["updated_at", "2015-10-30 13:02:30.523210"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (3.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:02:30.533464"], ["updated_at", "2015-10-30 13:02:30.533464"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (2.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.7ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:02:30.575685"], ["updated_at", "2015-10-30 13:02:30.575685"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 13:02:30.582552"], ["updated_at", "2015-10-30 13:02:30.582552"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:02:30.588171"], ["updated_at", "2015-10-30 13:02:30.588171"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.9ms)[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[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:03:07.675392"], ["updated_at", "2015-10-30 13:03:07.675392"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:07.717065"], ["updated_at", "2015-10-30 13:03:07.717065"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:07.734571"], ["updated_at", "2015-10-30 13:03:07.734571"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:07.750426"], ["updated_at", "2015-10-30 13:03:07.750426"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:07.755211"], ["updated_at", "2015-10-30 13:03:07.755211"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 26ms (Views: 16.0ms | ActiveRecord: 0.0ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:03:07.815815"], ["updated_at", "2015-10-30 13:03:07.815815"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:07.818288"], ["updated_at", "2015-10-30 13:03:07.818288"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:07.820802"], ["updated_at", "2015-10-30 13:03:07.820802"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:07.823718"], ["updated_at", "2015-10-30 13:03:07.823718"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:07.825380"], ["updated_at", "2015-10-30 13:03:07.825380"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (11.1ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:03:07.848812"], ["updated_at", "2015-10-30 13:03:07.848812"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:07.852010"], ["updated_at", "2015-10-30 13:03:07.852010"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:07.856474"], ["updated_at", "2015-10-30 13:03:07.856474"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:07.879070"], ["updated_at", "2015-10-30 13:03:07.879070"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:07.882523"], ["updated_at", "2015-10-30 13:03:07.882523"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.7ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (3.0ms) Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.9ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:03:07.906957"], ["updated_at", "2015-10-30 13:03:07.906957"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:07.910731"], ["updated_at", "2015-10-30 13:03:07.910731"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:07.913723"], ["updated_at", "2015-10-30 13:03:07.913723"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:07.920295"], ["updated_at", "2015-10-30 13:03:07.920295"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:07.922056"], ["updated_at", "2015-10-30 13:03:07.922056"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.7ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (15.8ms) Completed 200 OK in 25ms (Views: 16.5ms | ActiveRecord: 1.2ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 13:03:07.960215"], ["updated_at", "2015-10-30 13:03:07.960215"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:07.964633"], ["updated_at", "2015-10-30 13:03:07.964633"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:07.972442"], ["updated_at", "2015-10-30 13:03:07.972442"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:07.987793"], ["updated_at", "2015-10-30 13:03:07.987793"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:07.990806"], ["updated_at", "2015-10-30 13:03:07.990806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.5ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:03:08.265760"], ["updated_at", "2015-10-30 13:03:08.265760"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:03:08.269797"], ["updated_at", "2015-10-30 13:03:08.269797"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.276059"], ["updated_at", "2015-10-30 13:03:08.276059"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.282092"], ["updated_at", "2015-10-30 13:03:08.282092"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.285680"], ["updated_at", "2015-10-30 13:03:08.285680"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:03:08.296561"], ["updated_at", "2015-10-30 13:03:08.296561"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:03:08.300847"], ["updated_at", "2015-10-30 13:03:08.300847"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.307776"], ["updated_at", "2015-10-30 13:03:08.307776"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.317267"], ["updated_at", "2015-10-30 13:03:08.317267"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.323630"], ["updated_at", "2015-10-30 13:03:08.323630"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.4ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 27.0ms Sent mail to user7@sleede.com (6.4ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56336a8c58eeb_77a83fec60c601d8274d0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:03:08.370680"], ["updated_at", "2015-10-30 13:03:08.370680"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 13:03:08.372820"], ["updated_at", "2015-10-30 13:03:08.372820"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.375458"], ["updated_at", "2015-10-30 13:03:08.375458"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:08.376914"], ["updated_at", "2015-10-30 13:03:08.376914"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.378792"], ["updated_at", "2015-10-30 13:03:08.378792"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.0ms Sent mail to user8@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56336a8c5db11_77a83fec60c601d827529@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:03:08.388058"], ["updated_at", "2015-10-30 13:03:08.388058"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:03:08.390149"], ["updated_at", "2015-10-30 13:03:08.390149"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.392794"], ["updated_at", "2015-10-30 13:03:08.392794"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.394206"], ["updated_at", "2015-10-30 13:03:08.394206"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.395484"], ["updated_at", "2015-10-30 13:03:08.395484"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56336a8c61684_77a83fec60c601d82761e@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:03:08.403069"], ["updated_at", "2015-10-30 13:03:08.403069"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 13:03:08.406821"], ["updated_at", "2015-10-30 13:03:08.406821"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.410556"], ["updated_at", "2015-10-30 13:03:08.410556"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:08.412679"], ["updated_at", "2015-10-30 13:03:08.412679"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.414764"], ["updated_at", "2015-10-30 13:03:08.414764"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.3ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.7ms Sent mail to user10@sleede.com (3.4ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56336a8c6783a_77a83fec60c601d827750@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.428596"], ["updated_at", "2015-10-30 13:03:08.428596"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:03:08.430427"], ["updated_at", "2015-10-30 13:03:08.430427"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.433244"], ["updated_at", "2015-10-30 13:03:08.433244"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.435378"], ["updated_at", "2015-10-30 13:03:08.435378"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.436744"], ["updated_at", "2015-10-30 13:03:08.436744"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.446128"], ["updated_at", "2015-10-30 13:03:08.446128"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:03:08.447972"], ["updated_at", "2015-10-30 13:03:08.447972"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.450525"], ["updated_at", "2015-10-30 13:03:08.450525"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.452717"], ["updated_at", "2015-10-30 13:03:08.452717"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:03:08.454127"], ["updated_at", "2015-10-30 13:03:08.454127"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.456606"], ["updated_at", "2015-10-30 13:03:08.456606"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.457951"], ["updated_at", "2015-10-30 13:03:08.457951"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.459527"], ["updated_at", "2015-10-30 13:03:08.459527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.464026"], ["updated_at", "2015-10-30 13:03:08.464026"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:03:08.466036"], ["updated_at", "2015-10-30 13:03:08.466036"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.469226"], ["updated_at", "2015-10-30 13:03:08.469226"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.471803"], ["updated_at", "2015-10-30 13:03:08.471803"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:03:08.473664"], ["updated_at", "2015-10-30 13:03:08.473664"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.479902"], ["updated_at", "2015-10-30 13:03:08.479902"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.485069"], ["updated_at", "2015-10-30 13:03:08.485069"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.487529"], ["updated_at", "2015-10-30 13:03:08.487529"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.490997"], ["updated_at", "2015-10-30 13:03:08.490997"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:03:08.492623"], ["updated_at", "2015-10-30 13:03:08.492623"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.494812"], ["updated_at", "2015-10-30 13:03:08.494812"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.497419"], ["updated_at", "2015-10-30 13:03:08.497419"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:08.503215"], ["updated_at", "2015-10-30 13:03:08.503215"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 13:03:08.504767"], ["updated_at", "2015-10-30 13:03:08.504767"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.506817"], ["updated_at", "2015-10-30 13:03:08.506817"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.508847"], ["updated_at", "2015-10-30 13:03:08.508847"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.515256"], ["updated_at", "2015-10-30 13:03:08.515256"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:03:08.518009"], ["updated_at", "2015-10-30 13:03:08.518009"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.520729"], ["updated_at", "2015-10-30 13:03:08.520729"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.523272"], ["updated_at", "2015-10-30 13:03:08.523272"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:03:08.528372"], ["updated_at", "2015-10-30 13:03:08.528372"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.535149"], ["updated_at", "2015-10-30 13:03:08.535149"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.536755"], ["updated_at", "2015-10-30 13:03:08.536755"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.538459"], ["updated_at", "2015-10-30 13:03:08.538459"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:08.542540"], ["updated_at", "2015-10-30 13:03:08.542540"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 13:03:08.544131"], ["updated_at", "2015-10-30 13:03:08.544131"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.547084"], ["updated_at", "2015-10-30 13:03:08.547084"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.549648"], ["updated_at", "2015-10-30 13:03:08.549648"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 13:03:08.551225"], ["updated_at", "2015-10-30 13:03:08.551225"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.553806"], ["updated_at", "2015-10-30 13:03:08.553806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:03:08.555187"], ["updated_at", "2015-10-30 13:03:08.555187"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.557859"], ["updated_at", "2015-10-30 13:03:08.557859"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.6ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 13:03:08.569970"], ["updated_at", "2015-10-30 13:03:08.569970"]] [1m[36m (0.7ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.583504"], ["updated_at", "2015-10-30 13:03:08.583504"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.590211"], ["updated_at", "2015-10-30 13:03:08.590211"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:03:08.608897"], ["updated_at", "2015-10-30 13:03:08.608897"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.614519"], ["updated_at", "2015-10-30 13:03:08.614519"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.619580"], ["updated_at", "2015-10-30 13:03:08.619580"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 13:03:08.627041"], ["updated_at", "2015-10-30 13:03:08.627041"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.637667"], ["updated_at", "2015-10-30 13:03:08.637667"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.653001"], ["updated_at", "2015-10-30 13:03:08.653001"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 13:03:08.666487"], ["updated_at", "2015-10-30 13:03:08.666487"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.669801"], ["updated_at", "2015-10-30 13:03:08.669801"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.673524"], ["updated_at", "2015-10-30 13:03:08.673524"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 13:03:08.680261"], ["updated_at", "2015-10-30 13:03:08.680261"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.684954"], ["updated_at", "2015-10-30 13:03:08.684954"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.690150"], ["updated_at", "2015-10-30 13:03:08.690150"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.708798"], ["updated_at", "2015-10-30 13:03:08.708798"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.7ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.735834"], ["updated_at", "2015-10-30 13:03:08.735834"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:03:08.740375"], ["updated_at", "2015-10-30 13:03:08.740375"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.746846"], ["updated_at", "2015-10-30 13:03:08.746846"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 13:03:08.749732"], ["updated_at", "2015-10-30 13:03:08.749732"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.754095"], ["updated_at", "2015-10-30 13:03:08.754095"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:03:08.757028"], ["updated_at", "2015-10-30 13:03:08.757028"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.761863"], ["updated_at", "2015-10-30 13:03:08.761863"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 13:03:08.774410"], ["updated_at", "2015-10-30 13:03:08.774410"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.788539"], ["updated_at", "2015-10-30 13:03:08.788539"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 13:03:08.794476"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 13:03:08.801762"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 13:03:08.805145"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.811649"], ["updated_at", "2015-10-30 13:03:08.811649"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 10.2ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a8cc9149_77a83fec60c601d827853@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:03:08.825052"], ["updated_at", "2015-10-30 13:03:08.825052"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:03:08.826393"], ["updated_at", "2015-10-30 13:03:08.826393"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.834449"], ["updated_at", "2015-10-30 13:03:08.834449"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a8ccc9a1_77a83fec60c601d82796f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.841703"], ["updated_at", "2015-10-30 13:03:08.841703"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a8cce259_77a83fec60c601d82806d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:03:08.846037"], ["updated_at", "2015-10-30 13:03:08.846037"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:03:08.847613"], ["updated_at", "2015-10-30 13:03:08.847613"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.848944"], ["updated_at", "2015-10-30 13:03:08.848944"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a8ccfeb7_77a83fec60c601d8281d1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.855343"], ["updated_at", "2015-10-30 13:03:08.855343"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56336a8cd186d_77a83fec60c601d8282f0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:03:08.859626"], ["updated_at", "2015-10-30 13:03:08.859626"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:03:08.861037"], ["updated_at", "2015-10-30 13:03:08.861037"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.862283"], ["updated_at", "2015-10-30 13:03:08.862283"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (2.4ms) Date: Fri, 30 Oct 2015 14:03:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56336a8cd3418_77a83fec60c601d82835@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 13:03:08.875526"], ["updated_at", "2015-10-30 13:03:08.875526"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:03:08.877819"], ["updated_at", "2015-10-30 13:03:08.877819"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.880675"], ["updated_at", "2015-10-30 13:03:08.880675"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.882857"], ["updated_at", "2015-10-30 13:03:08.882857"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:03:08.884236"], ["updated_at", "2015-10-30 13:03:08.884236"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 13:03:08.892958"], ["updated_at", "2015-10-30 13:03:08.892958"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:03:08.895094"], ["updated_at", "2015-10-30 13:03:08.895094"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:03:08.899590"], ["updated_at", "2015-10-30 13:03:08.899590"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:03:08.911074"], ["updated_at", "2015-10-30 13:03:08.911074"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 13:03:08.914184"], ["updated_at", "2015-10-30 13:03:08.914184"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:03:08.917562"], ["updated_at", "2015-10-30 13:03:08.917562"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[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.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:35:52.064315"], ["updated_at", "2015-10-30 13:35:52.064315"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.078889"], ["updated_at", "2015-10-30 13:35:52.078889"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.097268"], ["updated_at", "2015-10-30 13:35:52.097268"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.117107"], ["updated_at", "2015-10-30 13:35:52.117107"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.120927"], ["updated_at", "2015-10-30 13:35:52.120927"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 11.5ms | ActiveRecord: 0.0ms) [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:35:52.159807"], ["updated_at", "2015-10-30 13:35:52.159807"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.162109"], ["updated_at", "2015-10-30 13:35:52.162109"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.164866"], ["updated_at", "2015-10-30 13:35:52.164866"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.167592"], ["updated_at", "2015-10-30 13:35:52.167592"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.169503"], ["updated_at", "2015-10-30 13:35:52.169503"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/index.json.jbuilder (10.0ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:35:52.188041"], ["updated_at", "2015-10-30 13:35:52.188041"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.190035"], ["updated_at", "2015-10-30 13:35:52.190035"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.193197"], ["updated_at", "2015-10-30 13:35:52.193197"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.197656"], ["updated_at", "2015-10-30 13:35:52.197656"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.199588"], ["updated_at", "2015-10-30 13:35:52.199588"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (6.3ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 1.0ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:35:52.221255"], ["updated_at", "2015-10-30 13:35:52.221255"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.223554"], ["updated_at", "2015-10-30 13:35:52.223554"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.225787"], ["updated_at", "2015-10-30 13:35:52.225787"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.228265"], ["updated_at", "2015-10-30 13:35:52.228265"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.230307"], ["updated_at", "2015-10-30 13:35:52.230307"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (1.5ms) Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 13:35:52.240958"], ["updated_at", "2015-10-30 13:35:52.240958"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.243201"], ["updated_at", "2015-10-30 13:35:52.243201"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.245607"], ["updated_at", "2015-10-30 13:35:52.245607"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.248934"], ["updated_at", "2015-10-30 13:35:52.248934"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.250892"], ["updated_at", "2015-10-30 13:35:52.250892"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 10ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:35:52.435485"], ["updated_at", "2015-10-30 13:35:52.435485"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:35:52.437397"], ["updated_at", "2015-10-30 13:35:52.437397"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.440115"], ["updated_at", "2015-10-30 13:35:52.440115"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.441496"], ["updated_at", "2015-10-30 13:35:52.441496"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.442741"], ["updated_at", "2015-10-30 13:35:52.442741"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:35:52.448784"], ["updated_at", "2015-10-30 13:35:52.448784"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:35:52.451138"], ["updated_at", "2015-10-30 13:35:52.451138"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.453751"], ["updated_at", "2015-10-30 13:35:52.453751"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.455105"], ["updated_at", "2015-10-30 13:35:52.455105"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.456378"], ["updated_at", "2015-10-30 13:35:52.456378"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 17.6ms Sent mail to user7@sleede.com (8.9ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5633723875746_79893fcb584601dc42a3@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:35:52.489037"], ["updated_at", "2015-10-30 13:35:52.489037"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 13:35:52.491347"], ["updated_at", "2015-10-30 13:35:52.491347"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.493858"], ["updated_at", "2015-10-30 13:35:52.493858"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.495369"], ["updated_at", "2015-10-30 13:35:52.495369"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.498800"], ["updated_at", "2015-10-30 13:35:52.498800"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.3ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.4ms Sent mail to user8@sleede.com (2.4ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563372387bc4e_79893fcb584601dc432a@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:35:52.511765"], ["updated_at", "2015-10-30 13:35:52.511765"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:35:52.513911"], ["updated_at", "2015-10-30 13:35:52.513911"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.516723"], ["updated_at", "2015-10-30 13:35:52.516723"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.518257"], ["updated_at", "2015-10-30 13:35:52.518257"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.519918"], ["updated_at", "2015-10-30 13:35:52.519918"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563372387faf7_79893fcb584601dc4461@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:35:52.527630"], ["updated_at", "2015-10-30 13:35:52.527630"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 13:35:52.530085"], ["updated_at", "2015-10-30 13:35:52.530085"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.532668"], ["updated_at", "2015-10-30 13:35:52.532668"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.534035"], ["updated_at", "2015-10-30 13:35:52.534035"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.537198"], ["updated_at", "2015-10-30 13:35:52.537198"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5633723884131_79893fcb584601dc45b5@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.544659"], ["updated_at", "2015-10-30 13:35:52.544659"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:35:52.549633"], ["updated_at", "2015-10-30 13:35:52.549633"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.557175"], ["updated_at", "2015-10-30 13:35:52.557175"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.559618"], ["updated_at", "2015-10-30 13:35:52.559618"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.561038"], ["updated_at", "2015-10-30 13:35:52.561038"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.570051"], ["updated_at", "2015-10-30 13:35:52.570051"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:35:52.571739"], ["updated_at", "2015-10-30 13:35:52.571739"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.573971"], ["updated_at", "2015-10-30 13:35:52.573971"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.576204"], ["updated_at", "2015-10-30 13:35:52.576204"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:35:52.577685"], ["updated_at", "2015-10-30 13:35:52.577685"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.580649"], ["updated_at", "2015-10-30 13:35:52.580649"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.584148"], ["updated_at", "2015-10-30 13:35:52.584148"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.587353"], ["updated_at", "2015-10-30 13:35:52.587353"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.591584"], ["updated_at", "2015-10-30 13:35:52.591584"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:35:52.593346"], ["updated_at", "2015-10-30 13:35:52.593346"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.595797"], ["updated_at", "2015-10-30 13:35:52.595797"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.603786"], ["updated_at", "2015-10-30 13:35:52.603786"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:35:52.607263"], ["updated_at", "2015-10-30 13:35:52.607263"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.610203"], ["updated_at", "2015-10-30 13:35:52.610203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.611672"], ["updated_at", "2015-10-30 13:35:52.611672"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.613460"], ["updated_at", "2015-10-30 13:35:52.613460"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.617348"], ["updated_at", "2015-10-30 13:35:52.617348"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:35:52.619146"], ["updated_at", "2015-10-30 13:35:52.619146"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.621535"], ["updated_at", "2015-10-30 13:35:52.621535"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.623952"], ["updated_at", "2015-10-30 13:35:52.623952"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.630659"], ["updated_at", "2015-10-30 13:35:52.630659"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 13:35:52.632502"], ["updated_at", "2015-10-30 13:35:52.632502"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.636703"], ["updated_at", "2015-10-30 13:35:52.636703"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.640462"], ["updated_at", "2015-10-30 13:35:52.640462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.644699"], ["updated_at", "2015-10-30 13:35:52.644699"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:35:52.650066"], ["updated_at", "2015-10-30 13:35:52.650066"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.657844"], ["updated_at", "2015-10-30 13:35:52.657844"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.660110"], ["updated_at", "2015-10-30 13:35:52.660110"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:35:52.661968"], ["updated_at", "2015-10-30 13:35:52.661968"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.664515"], ["updated_at", "2015-10-30 13:35:52.664515"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.666039"], ["updated_at", "2015-10-30 13:35:52.666039"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.667924"], ["updated_at", "2015-10-30 13:35:52.667924"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.672223"], ["updated_at", "2015-10-30 13:35:52.672223"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 13:35:52.673821"], ["updated_at", "2015-10-30 13:35:52.673821"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.675940"], ["updated_at", "2015-10-30 13:35:52.675940"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.678369"], ["updated_at", "2015-10-30 13:35:52.678369"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 13:35:52.680465"], ["updated_at", "2015-10-30 13:35:52.680465"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.683509"], ["updated_at", "2015-10-30 13:35:52.683509"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:35:52.684881"], ["updated_at", "2015-10-30 13:35:52.684881"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.688501"], ["updated_at", "2015-10-30 13:35:52.688501"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 13:35:52.692467"], ["updated_at", "2015-10-30 13:35:52.692467"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.694925"], ["updated_at", "2015-10-30 13:35:52.694925"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.702251"], ["updated_at", "2015-10-30 13:35:52.702251"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:35:52.709930"], ["updated_at", "2015-10-30 13:35:52.709930"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.713081"], ["updated_at", "2015-10-30 13:35:52.713081"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.716457"], ["updated_at", "2015-10-30 13:35:52.716457"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 13:35:52.721433"], ["updated_at", "2015-10-30 13:35:52.721433"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.723767"], ["updated_at", "2015-10-30 13:35:52.723767"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.726151"], ["updated_at", "2015-10-30 13:35:52.726151"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 13:35:52.731746"], ["updated_at", "2015-10-30 13:35:52.731746"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.734026"], ["updated_at", "2015-10-30 13:35:52.734026"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.738488"], ["updated_at", "2015-10-30 13:35:52.738488"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 13:35:52.742403"], ["updated_at", "2015-10-30 13:35:52.742403"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.744913"], ["updated_at", "2015-10-30 13:35:52.744913"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.754085"], ["updated_at", "2015-10-30 13:35:52.754085"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.760698"], ["updated_at", "2015-10-30 13:35:52.760698"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.764845"], ["updated_at", "2015-10-30 13:35:52.764845"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:35:52.766620"], ["updated_at", "2015-10-30 13:35:52.766620"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.769395"], ["updated_at", "2015-10-30 13:35:52.769395"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 13:35:52.770818"], ["updated_at", "2015-10-30 13:35:52.770818"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.772987"], ["updated_at", "2015-10-30 13:35:52.772987"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:35:52.774281"], ["updated_at", "2015-10-30 13:35:52.774281"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.776231"], ["updated_at", "2015-10-30 13:35:52.776231"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 13:35:52.777433"], ["updated_at", "2015-10-30 13:35:52.777433"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.779324"], ["updated_at", "2015-10-30 13:35:52.779324"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 13:35:52.786246"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 13:35:52.791517"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 13:35:52.794776"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.806226"], ["updated_at", "2015-10-30 13:35:52.806226"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 10.9ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337238c80ff_79893fcb584601dc4688@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:35:52.821074"], ["updated_at", "2015-10-30 13:35:52.821074"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:35:52.822671"], ["updated_at", "2015-10-30 13:35:52.822671"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.823940"], ["updated_at", "2015-10-30 13:35:52.823940"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337238c9cad_79893fcb584601dc473a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.829952"], ["updated_at", "2015-10-30 13:35:52.829952"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337238cb580_79893fcb584601dc4811@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:35:52.834285"], ["updated_at", "2015-10-30 13:35:52.834285"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:35:52.835563"], ["updated_at", "2015-10-30 13:35:52.835563"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.836727"], ["updated_at", "2015-10-30 13:35:52.836727"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 6.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337238ce238_79893fcb584601dc4924@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.848565"], ["updated_at", "2015-10-30 13:35:52.848565"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337238d0004_79893fcb584601dc50b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:35:52.853570"], ["updated_at", "2015-10-30 13:35:52.853570"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:35:52.855159"], ["updated_at", "2015-10-30 13:35:52.855159"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.857218"], ["updated_at", "2015-10-30 13:35:52.857218"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 2.3ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 14:35:52 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337238d2676_79893fcb584601dc51d1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 13:35:52.870867"], ["updated_at", "2015-10-30 13:35:52.870867"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:35:52.873063"], ["updated_at", "2015-10-30 13:35:52.873063"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.875558"], ["updated_at", "2015-10-30 13:35:52.875558"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.877788"], ["updated_at", "2015-10-30 13:35:52.877788"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:35:52.879180"], ["updated_at", "2015-10-30 13:35:52.879180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 13:35:52.887729"], ["updated_at", "2015-10-30 13:35:52.887729"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:35:52.890170"], ["updated_at", "2015-10-30 13:35:52.890170"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:35:52.893094"], ["updated_at", "2015-10-30 13:35:52.893094"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:35:52.904288"], ["updated_at", "2015-10-30 13:35:52.904288"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 13:35:52.907359"], ["updated_at", "2015-10-30 13:35:52.907359"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:35:52.910541"], ["updated_at", "2015-10-30 13:35:52.910541"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 13:58:27.320630"], ["updated_at", "2015-10-30 13:58:27.320630"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.338303"], ["updated_at", "2015-10-30 13:58:27.338303"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.358109"], ["updated_at", "2015-10-30 13:58:27.358109"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.379364"], ["updated_at", "2015-10-30 13:58:27.379364"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.382947"], ["updated_at", "2015-10-30 13:58:27.382947"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 9ms (Views: 1.4ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 13:58:27.409839"], ["updated_at", "2015-10-30 13:58:27.409839"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.412161"], ["updated_at", "2015-10-30 13:58:27.412161"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.414592"], ["updated_at", "2015-10-30 13:58:27.414592"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.417643"], ["updated_at", "2015-10-30 13:58:27.417643"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.419517"], ["updated_at", "2015-10-30 13:58:27.419517"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 13:58:27.428956"], ["updated_at", "2015-10-30 13:58:27.428956"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.430882"], ["updated_at", "2015-10-30 13:58:27.430882"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.433901"], ["updated_at", "2015-10-30 13:58:27.433901"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.436938"], ["updated_at", "2015-10-30 13:58:27.436938"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.439089"], ["updated_at", "2015-10-30 13:58:27.439089"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms) [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 13:58:27.457250"], ["updated_at", "2015-10-30 13:58:27.457250"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.459399"], ["updated_at", "2015-10-30 13:58:27.459399"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.466432"], ["updated_at", "2015-10-30 13:58:27.466432"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.473637"], ["updated_at", "2015-10-30 13:58:27.473637"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.475618"], ["updated_at", "2015-10-30 13:58:27.475618"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered /Users/nicolas/www/ruby/wupee/app/views/wupee/api/notifications/show.json.jbuilder (10.8ms) Completed 200 OK in 27ms (Views: 24.7ms | ActiveRecord: 0.5ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 13:58:27.510170"], ["updated_at", "2015-10-30 13:58:27.510170"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.515376"], ["updated_at", "2015-10-30 13:58:27.515376"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.522014"], ["updated_at", "2015-10-30 13:58:27.522014"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.524926"], ["updated_at", "2015-10-30 13:58:27.524926"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.526732"], ["updated_at", "2015-10-30 13:58:27.526732"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:58:27.696490"], ["updated_at", "2015-10-30 13:58:27.696490"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 13:58:27.698710"], ["updated_at", "2015-10-30 13:58:27.698710"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.701773"], ["updated_at", "2015-10-30 13:58:27.701773"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.703253"], ["updated_at", "2015-10-30 13:58:27.703253"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.705135"], ["updated_at", "2015-10-30 13:58:27.705135"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:58:27.711032"], ["updated_at", "2015-10-30 13:58:27.711032"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 13:58:27.712965"], ["updated_at", "2015-10-30 13:58:27.712965"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.715544"], ["updated_at", "2015-10-30 13:58:27.715544"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.716939"], ["updated_at", "2015-10-30 13:58:27.716939"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.718235"], ["updated_at", "2015-10-30 13:58:27.718235"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (1.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 16.9ms Sent mail to user7@sleede.com (7.6ms) Date: Fri, 30 Oct 2015 14:58:27 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56337783b50f9_7ac43fdfca0601dc468c9@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:58:27.748718"], ["updated_at", "2015-10-30 13:58:27.748718"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 13:58:27.751266"], ["updated_at", "2015-10-30 13:58:27.751266"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.756909"], ["updated_at", "2015-10-30 13:58:27.756909"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.758860"], ["updated_at", "2015-10-30 13:58:27.758860"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.761995"], ["updated_at", "2015-10-30 13:58:27.761995"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.1ms Sent mail to user8@sleede.com (2.8ms) Date: Fri, 30 Oct 2015 14:58:27 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56337783bbfea_7ac43fdfca0601dc4698d@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:58:27.775197"], ["updated_at", "2015-10-30 13:58:27.775197"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 13:58:27.777344"], ["updated_at", "2015-10-30 13:58:27.777344"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.779841"], ["updated_at", "2015-10-30 13:58:27.779841"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.781182"], ["updated_at", "2015-10-30 13:58:27.781182"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.782414"], ["updated_at", "2015-10-30 13:58:27.782414"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:58:27 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56337783bfebd_7ac43fdfca0601dc4708@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 13:58:27.791977"], ["updated_at", "2015-10-30 13:58:27.791977"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 13:58:27.793909"], ["updated_at", "2015-10-30 13:58:27.793909"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.796398"], ["updated_at", "2015-10-30 13:58:27.796398"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.797718"], ["updated_at", "2015-10-30 13:58:27.797718"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.801087"], ["updated_at", "2015-10-30 13:58:27.801087"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (2.4ms) Date: Fri, 30 Oct 2015 14:58:27 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56337783c4943_7ac43fdfca0601dc4714f@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.809917"], ["updated_at", "2015-10-30 13:58:27.809917"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 13:58:27.811756"], ["updated_at", "2015-10-30 13:58:27.811756"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.814220"], ["updated_at", "2015-10-30 13:58:27.814220"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.816320"], ["updated_at", "2015-10-30 13:58:27.816320"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.818020"], ["updated_at", "2015-10-30 13:58:27.818020"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.832231"], ["updated_at", "2015-10-30 13:58:27.832231"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 13:58:27.835381"], ["updated_at", "2015-10-30 13:58:27.835381"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.839998"], ["updated_at", "2015-10-30 13:58:27.839998"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.842691"], ["updated_at", "2015-10-30 13:58:27.842691"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 13:58:27.844324"], ["updated_at", "2015-10-30 13:58:27.844324"]] [1m[36m (0.0ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.846384"], ["updated_at", "2015-10-30 13:58:27.846384"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.847654"], ["updated_at", "2015-10-30 13:58:27.847654"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.849327"], ["updated_at", "2015-10-30 13:58:27.849327"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.852745"], ["updated_at", "2015-10-30 13:58:27.852745"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 13:58:27.854712"], ["updated_at", "2015-10-30 13:58:27.854712"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.858214"], ["updated_at", "2015-10-30 13:58:27.858214"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.861424"], ["updated_at", "2015-10-30 13:58:27.861424"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 13:58:27.864523"], ["updated_at", "2015-10-30 13:58:27.864523"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.867496"], ["updated_at", "2015-10-30 13:58:27.867496"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.869418"], ["updated_at", "2015-10-30 13:58:27.869418"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.872465"], ["updated_at", "2015-10-30 13:58:27.872465"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.876003"], ["updated_at", "2015-10-30 13:58:27.876003"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 13:58:27.878850"], ["updated_at", "2015-10-30 13:58:27.878850"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.885589"], ["updated_at", "2015-10-30 13:58:27.885589"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.891941"], ["updated_at", "2015-10-30 13:58:27.891941"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.898948"], ["updated_at", "2015-10-30 13:58:27.898948"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 13:58:27.900774"], ["updated_at", "2015-10-30 13:58:27.900774"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.903192"], ["updated_at", "2015-10-30 13:58:27.903192"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.905485"], ["updated_at", "2015-10-30 13:58:27.905485"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.910393"], ["updated_at", "2015-10-30 13:58:27.910393"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 13:58:27.912135"], ["updated_at", "2015-10-30 13:58:27.912135"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.914475"], ["updated_at", "2015-10-30 13:58:27.914475"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.919584"], ["updated_at", "2015-10-30 13:58:27.919584"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 13:58:27.922355"], ["updated_at", "2015-10-30 13:58:27.922355"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.926588"], ["updated_at", "2015-10-30 13:58:27.926588"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:27.932692"], ["updated_at", "2015-10-30 13:58:27.932692"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.938865"], ["updated_at", "2015-10-30 13:58:27.938865"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.943411"], ["updated_at", "2015-10-30 13:58:27.943411"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 13:58:27.945198"], ["updated_at", "2015-10-30 13:58:27.945198"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.947586"], ["updated_at", "2015-10-30 13:58:27.947586"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.950304"], ["updated_at", "2015-10-30 13:58:27.950304"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 13:58:27.951950"], ["updated_at", "2015-10-30 13:58:27.951950"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:27.954199"], ["updated_at", "2015-10-30 13:58:27.954199"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 13:58:27.955572"], ["updated_at", "2015-10-30 13:58:27.955572"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:27.958420"], ["updated_at", "2015-10-30 13:58:27.958420"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 13:58:27.962330"], ["updated_at", "2015-10-30 13:58:27.962330"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.964637"], ["updated_at", "2015-10-30 13:58:27.964637"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.967064"], ["updated_at", "2015-10-30 13:58:27.967064"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 13:58:27.972074"], ["updated_at", "2015-10-30 13:58:27.972074"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.974320"], ["updated_at", "2015-10-30 13:58:27.974320"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.976650"], ["updated_at", "2015-10-30 13:58:27.976650"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 13:58:27.983422"], ["updated_at", "2015-10-30 13:58:27.983422"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:27.986439"], ["updated_at", "2015-10-30 13:58:27.986439"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:27.988891"], ["updated_at", "2015-10-30 13:58:27.988891"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 13:58:27.999509"], ["updated_at", "2015-10-30 13:58:27.999509"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:28.005789"], ["updated_at", "2015-10-30 13:58:28.005789"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:28.009025"], ["updated_at", "2015-10-30 13:58:28.009025"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 13:58:28.012508"], ["updated_at", "2015-10-30 13:58:28.012508"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:28.014889"], ["updated_at", "2015-10-30 13:58:28.014889"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:28.017286"], ["updated_at", "2015-10-30 13:58:28.017286"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:28.021838"], ["updated_at", "2015-10-30 13:58:28.021838"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:28.027523"], ["updated_at", "2015-10-30 13:58:28.027523"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 13:58:28.029270"], ["updated_at", "2015-10-30 13:58:28.029270"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:28.033896"], ["updated_at", "2015-10-30 13:58:28.033896"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 13:58:28.035789"], ["updated_at", "2015-10-30 13:58:28.035789"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:28.039320"], ["updated_at", "2015-10-30 13:58:28.039320"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 13:58:28.040772"], ["updated_at", "2015-10-30 13:58:28.040772"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:28.042911"], ["updated_at", "2015-10-30 13:58:28.042911"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 13:58:28.046253"], ["updated_at", "2015-10-30 13:58:28.046253"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:28.051050"], ["updated_at", "2015-10-30 13:58:28.051050"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 13:58:28.059765"], ["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 13:58:28.063729"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 13:58:28.066452"], ["id", 4]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:28.073670"], ["updated_at", "2015-10-30 13:58:28.073670"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 9.5ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 14:58:28 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633778414b99_7ac43fdfca0601dc472a4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:58:28.086382"], ["updated_at", "2015-10-30 13:58:28.086382"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:58:28.087864"], ["updated_at", "2015-10-30 13:58:28.087864"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:28.089144"], ["updated_at", "2015-10-30 13:58:28.089144"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms Sent mail to user30@sleede.com (2.6ms) Date: Fri, 30 Oct 2015 14:58:28 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633778416b73_7ac43fdfca0601dc473b8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:28.097551"], ["updated_at", "2015-10-30 13:58:28.097551"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:58:28 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633778418774_7ac43fdfca0601dc4748f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:58:28.101568"], ["updated_at", "2015-10-30 13:58:28.101568"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:58:28.102880"], ["updated_at", "2015-10-30 13:58:28.102880"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:28.104068"], ["updated_at", "2015-10-30 13:58:28.104068"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:58:28 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563377841a25d_7ac43fdfca0601dc475ee@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:28.110616"], ["updated_at", "2015-10-30 13:58:28.110616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 14:58:28 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563377841ba94_7ac43fdfca0601dc476c6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:58:28.114635"], ["updated_at", "2015-10-30 13:58:28.114635"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 13:58:28.115980"], ["updated_at", "2015-10-30 13:58:28.115980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:28.117145"], ["updated_at", "2015-10-30 13:58:28.117145"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.1ms) Date: Fri, 30 Oct 2015 14:58:28 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563377841d32c_7ac43fdfca0601dc477bb@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.7ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 13:58:28.128552"], ["updated_at", "2015-10-30 13:58:28.128552"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 13:58:28.130636"], ["updated_at", "2015-10-30 13:58:28.130636"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:28.133124"], ["updated_at", "2015-10-30 13:58:28.133124"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:28.135302"], ["updated_at", "2015-10-30 13:58:28.135302"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 13:58:28.136660"], ["updated_at", "2015-10-30 13:58:28.136660"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 13:58:28.143794"], ["updated_at", "2015-10-30 13:58:28.143794"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 13:58:28.145893"], ["updated_at", "2015-10-30 13:58:28.145893"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 13:58:28.148232"], ["updated_at", "2015-10-30 13:58:28.148232"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 13:58:28.158322"], ["updated_at", "2015-10-30 13:58:28.158322"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 13:58:28.161610"], ["updated_at", "2015-10-30 13:58:28.161610"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 13:58:28.165152"], ["updated_at", "2015-10-30 13:58:28.165152"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.7ms)[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[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:00:07.719977"], ["updated_at", "2015-10-30 14:00:07.719977"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:07.734670"], ["updated_at", "2015-10-30 14:00:07.734670"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.755279"], ["updated_at", "2015-10-30 14:00:07.755279"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:07.775453"], ["updated_at", "2015-10-30 14:00:07.775453"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:07.780549"], ["updated_at", "2015-10-30 14:00:07.780549"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as HTML [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 12ms (Views: 3.2ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:00:07.812977"], ["updated_at", "2015-10-30 14:00:07.812977"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:07.815690"], ["updated_at", "2015-10-30 14:00:07.815690"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.818343"], ["updated_at", "2015-10-30 14:00:07.818343"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:07.821971"], ["updated_at", "2015-10-30 14:00:07.821971"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:07.823768"], ["updated_at", "2015-10-30 14:00:07.823768"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as HTML [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:00:07.834557"], ["updated_at", "2015-10-30 14:00:07.834557"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:07.836846"], ["updated_at", "2015-10-30 14:00:07.836846"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.839217"], ["updated_at", "2015-10-30 14:00:07.839217"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:07.841703"], ["updated_at", "2015-10-30 14:00:07.841703"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:07.845149"], ["updated_at", "2015-10-30 14:00:07.845149"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as HTML Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 0.2ms) [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:00:07.875006"], ["updated_at", "2015-10-30 14:00:07.875006"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:07.878857"], ["updated_at", "2015-10-30 14:00:07.878857"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.881723"], ["updated_at", "2015-10-30 14:00:07.881723"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:07.884353"], ["updated_at", "2015-10-30 14:00:07.884353"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:07.886024"], ["updated_at", "2015-10-30 14:00:07.886024"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as HTML Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.2ms) [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.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:00:07.908002"], ["updated_at", "2015-10-30 14:00:07.908002"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:07.912105"], ["updated_at", "2015-10-30 14:00:07.912105"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:07.918431"], ["updated_at", "2015-10-30 14:00:07.918431"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:07.927488"], ["updated_at", "2015-10-30 14:00:07.927488"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:07.929439"], ["updated_at", "2015-10-30 14:00:07.929439"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as HTML [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:00:08.092456"], ["updated_at", "2015-10-30 14:00:08.092456"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:00:08.095105"], ["updated_at", "2015-10-30 14:00:08.095105"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.098869"], ["updated_at", "2015-10-30 14:00:08.098869"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.100625"], ["updated_at", "2015-10-30 14:00:08.100625"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.102142"], ["updated_at", "2015-10-30 14:00:08.102142"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:00:08.108236"], ["updated_at", "2015-10-30 14:00:08.108236"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:00:08.110774"], ["updated_at", "2015-10-30 14:00:08.110774"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.113482"], ["updated_at", "2015-10-30 14:00:08.113482"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.114940"], ["updated_at", "2015-10-30 14:00:08.114940"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.116746"], ["updated_at", "2015-10-30 14:00:08.116746"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (1.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 17.0ms Sent mail to user7@sleede.com (8.3ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563377e82259b_7add3ff2514601d0778a0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:00:08.148664"], ["updated_at", "2015-10-30 14:00:08.148664"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:00:08.151577"], ["updated_at", "2015-10-30 14:00:08.151577"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.154201"], ["updated_at", "2015-10-30 14:00:08.154201"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.155654"], ["updated_at", "2015-10-30 14:00:08.155654"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.157330"], ["updated_at", "2015-10-30 14:00:08.157330"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user8@sleede.com (3.1ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563377e82733b_7add3ff2514601d07796c@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:00:08.171882"], ["updated_at", "2015-10-30 14:00:08.171882"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:00:08.174394"], ["updated_at", "2015-10-30 14:00:08.174394"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.177843"], ["updated_at", "2015-10-30 14:00:08.177843"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.179351"], ["updated_at", "2015-10-30 14:00:08.179351"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.180617"], ["updated_at", "2015-10-30 14:00:08.180617"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563377e82ccbe_7add3ff2514601d078041@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:00:08.187981"], ["updated_at", "2015-10-30 14:00:08.187981"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:00:08.190291"], ["updated_at", "2015-10-30 14:00:08.190291"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.192962"], ["updated_at", "2015-10-30 14:00:08.192962"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.194725"], ["updated_at", "2015-10-30 14:00:08.194725"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.196745"], ["updated_at", "2015-10-30 14:00:08.196745"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (3.0ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563377e831129_7add3ff2514601d07816@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.205886"], ["updated_at", "2015-10-30 14:00:08.205886"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:00:08.208201"], ["updated_at", "2015-10-30 14:00:08.208201"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.214606"], ["updated_at", "2015-10-30 14:00:08.214606"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.221333"], ["updated_at", "2015-10-30 14:00:08.221333"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.224326"], ["updated_at", "2015-10-30 14:00:08.224326"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.235435"], ["updated_at", "2015-10-30 14:00:08.235435"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:00:08.237025"], ["updated_at", "2015-10-30 14:00:08.237025"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.239531"], ["updated_at", "2015-10-30 14:00:08.239531"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.241963"], ["updated_at", "2015-10-30 14:00:08.241963"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:00:08.243688"], ["updated_at", "2015-10-30 14:00:08.243688"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.246662"], ["updated_at", "2015-10-30 14:00:08.246662"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.248040"], ["updated_at", "2015-10-30 14:00:08.248040"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.249652"], ["updated_at", "2015-10-30 14:00:08.249652"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.254685"], ["updated_at", "2015-10-30 14:00:08.254685"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:00:08.256838"], ["updated_at", "2015-10-30 14:00:08.256838"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.259868"], ["updated_at", "2015-10-30 14:00:08.259868"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.267228"], ["updated_at", "2015-10-30 14:00:08.267228"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:00:08.270557"], ["updated_at", "2015-10-30 14:00:08.270557"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.274852"], ["updated_at", "2015-10-30 14:00:08.274852"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.276912"], ["updated_at", "2015-10-30 14:00:08.276912"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.279174"], ["updated_at", "2015-10-30 14:00:08.279174"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.282950"], ["updated_at", "2015-10-30 14:00:08.282950"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:00:08.284641"], ["updated_at", "2015-10-30 14:00:08.284641"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.286890"], ["updated_at", "2015-10-30 14:00:08.286890"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.289542"], ["updated_at", "2015-10-30 14:00:08.289542"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.296096"], ["updated_at", "2015-10-30 14:00:08.296096"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:00:08.297915"], ["updated_at", "2015-10-30 14:00:08.297915"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.301921"], ["updated_at", "2015-10-30 14:00:08.301921"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.305204"], ["updated_at", "2015-10-30 14:00:08.305204"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.309982"], ["updated_at", "2015-10-30 14:00:08.309982"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:00:08.312309"], ["updated_at", "2015-10-30 14:00:08.312309"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.319106"], ["updated_at", "2015-10-30 14:00:08.319106"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.323800"], ["updated_at", "2015-10-30 14:00:08.323800"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:00:08.325496"], ["updated_at", "2015-10-30 14:00:08.325496"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.328143"], ["updated_at", "2015-10-30 14:00:08.328143"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.329973"], ["updated_at", "2015-10-30 14:00:08.329973"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.332065"], ["updated_at", "2015-10-30 14:00:08.332065"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.336716"], ["updated_at", "2015-10-30 14:00:08.336716"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:00:08.338529"], ["updated_at", "2015-10-30 14:00:08.338529"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.340820"], ["updated_at", "2015-10-30 14:00:08.340820"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.343692"], ["updated_at", "2015-10-30 14:00:08.343692"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:00:08.345289"], ["updated_at", "2015-10-30 14:00:08.345289"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.347903"], ["updated_at", "2015-10-30 14:00:08.347903"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:00:08.351601"], ["updated_at", "2015-10-30 14:00:08.351601"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.355005"], ["updated_at", "2015-10-30 14:00:08.355005"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:00:08.359317"], ["updated_at", "2015-10-30 14:00:08.359317"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.364133"], ["updated_at", "2015-10-30 14:00:08.364133"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.373195"], ["updated_at", "2015-10-30 14:00:08.373195"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:00:08.378933"], ["updated_at", "2015-10-30 14:00:08.378933"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.381444"], ["updated_at", "2015-10-30 14:00:08.381444"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.384075"], ["updated_at", "2015-10-30 14:00:08.384075"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:00:08.388775"], ["updated_at", "2015-10-30 14:00:08.388775"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.391167"], ["updated_at", "2015-10-30 14:00:08.391167"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.393968"], ["updated_at", "2015-10-30 14:00:08.393968"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:00:08.402146"], ["updated_at", "2015-10-30 14:00:08.402146"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.405131"], ["updated_at", "2015-10-30 14:00:08.405131"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.408732"], ["updated_at", "2015-10-30 14:00:08.408732"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:00:08.414451"], ["updated_at", "2015-10-30 14:00:08.414451"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.421365"], ["updated_at", "2015-10-30 14:00:08.421365"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.425025"], ["updated_at", "2015-10-30 14:00:08.425025"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.429252"], ["updated_at", "2015-10-30 14:00:08.429252"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.433415"], ["updated_at", "2015-10-30 14:00:08.433415"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:00:08.435351"], ["updated_at", "2015-10-30 14:00:08.435351"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.437986"], ["updated_at", "2015-10-30 14:00:08.437986"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:00:08.439287"], ["updated_at", "2015-10-30 14:00:08.439287"]] [1m[35m (0.0ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.441746"], ["updated_at", "2015-10-30 14:00:08.441746"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:00:08.443317"], ["updated_at", "2015-10-30 14:00:08.443317"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.445444"], ["updated_at", "2015-10-30 14:00:08.445444"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:00:08.446636"], ["updated_at", "2015-10-30 14:00:08.446636"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.450630"], ["updated_at", "2015-10-30 14:00:08.450630"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:00:08.455682"], ["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 14:00:08.459366"], ["id", 3]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.3ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:00:08.467587"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.6ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.478000"], ["updated_at", "2015-10-30 14:00:08.478000"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 10.7ms Sent mail to user27@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563377e877df8_7add3ff2514601d0782ab@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:00:08.493275"], ["updated_at", "2015-10-30 14:00:08.493275"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:00:08.495792"], ["updated_at", "2015-10-30 14:00:08.495792"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.497467"], ["updated_at", "2015-10-30 14:00:08.497467"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563377e87a374_7add3ff2514601d078362@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.504340"], ["updated_at", "2015-10-30 14:00:08.504340"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563377e87bcfb_7add3ff2514601d078497@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:00:08.508768"], ["updated_at", "2015-10-30 14:00:08.508768"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:00:08.510190"], ["updated_at", "2015-10-30 14:00:08.510190"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.511378"], ["updated_at", "2015-10-30 14:00:08.511378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563377e87d7d9_7add3ff2514601d07851d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.517534"], ["updated_at", "2015-10-30 14:00:08.517534"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563377e87f0e8_7add3ff2514601d0786c7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:00:08.521798"], ["updated_at", "2015-10-30 14:00:08.521798"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:00:08.523117"], ["updated_at", "2015-10-30 14:00:08.523117"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.524379"], ["updated_at", "2015-10-30 14:00:08.524379"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:00:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563377e880a6c_7add3ff2514601d0787db@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:00:08.536126"], ["updated_at", "2015-10-30 14:00:08.536126"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:00:08.538275"], ["updated_at", "2015-10-30 14:00:08.538275"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.540935"], ["updated_at", "2015-10-30 14:00:08.540935"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.543896"], ["updated_at", "2015-10-30 14:00:08.543896"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:00:08.545501"], ["updated_at", "2015-10-30 14:00:08.545501"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:00:08.554262"], ["updated_at", "2015-10-30 14:00:08.554262"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:00:08.556696"], ["updated_at", "2015-10-30 14:00:08.556696"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:00:08.559490"], ["updated_at", "2015-10-30 14:00:08.559490"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:00:08.572536"], ["updated_at", "2015-10-30 14:00:08.572536"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:00:08.575232"], ["updated_at", "2015-10-30 14:00:08.575232"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:00:08.580379"], ["updated_at", "2015-10-30 14:00:08.580379"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:04:07.440089"], ["updated_at", "2015-10-30 14:04:07.440089"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.455884"], ["updated_at", "2015-10-30 14:04:07.455884"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.476237"], ["updated_at", "2015-10-30 14:04:07.476237"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:07.496519"], ["updated_at", "2015-10-30 14:04:07.496519"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.500413"], ["updated_at", "2015-10-30 14:04:07.500413"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as HTML [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:04:07.529975"], ["updated_at", "2015-10-30 14:04:07.529975"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.532320"], ["updated_at", "2015-10-30 14:04:07.532320"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.534777"], ["updated_at", "2015-10-30 14:04:07.534777"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:07.539743"], ["updated_at", "2015-10-30 14:04:07.539743"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.541632"], ["updated_at", "2015-10-30 14:04:07.541632"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as HTML [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:04:07.553559"], ["updated_at", "2015-10-30 14:04:07.553559"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.555968"], ["updated_at", "2015-10-30 14:04:07.555968"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.558390"], ["updated_at", "2015-10-30 14:04:07.558390"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:07.561216"], ["updated_at", "2015-10-30 14:04:07.561216"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.563644"], ["updated_at", "2015-10-30 14:04:07.563644"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as HTML Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:04:07.588309"], ["updated_at", "2015-10-30 14:04:07.588309"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.594728"], ["updated_at", "2015-10-30 14:04:07.594728"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.597969"], ["updated_at", "2015-10-30 14:04:07.597969"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:07.600723"], ["updated_at", "2015-10-30 14:04:07.600723"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.603027"], ["updated_at", "2015-10-30 14:04:07.603027"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as HTML Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:04:07.627223"], ["updated_at", "2015-10-30 14:04:07.627223"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.629863"], ["updated_at", "2015-10-30 14:04:07.629863"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.634431"], ["updated_at", "2015-10-30 14:04:07.634431"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:07.639953"], ["updated_at", "2015-10-30 14:04:07.639953"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.646317"], ["updated_at", "2015-10-30 14:04:07.646317"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as HTML [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:07.816152"], ["updated_at", "2015-10-30 14:04:07.816152"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:04:07.818914"], ["updated_at", "2015-10-30 14:04:07.818914"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:07.822288"], ["updated_at", "2015-10-30 14:04:07.822288"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.823919"], ["updated_at", "2015-10-30 14:04:07.823919"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.825399"], ["updated_at", "2015-10-30 14:04:07.825399"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:07.832775"], ["updated_at", "2015-10-30 14:04:07.832775"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:04:07.834966"], ["updated_at", "2015-10-30 14:04:07.834966"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:07.838878"], ["updated_at", "2015-10-30 14:04:07.838878"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.840685"], ["updated_at", "2015-10-30 14:04:07.840685"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.842138"], ["updated_at", "2015-10-30 14:04:07.842138"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (1.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 16.2ms Sent mail to user7@sleede.com (8.0ms) Date: Fri, 30 Oct 2015 15:04:07 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563378d7d30b4_7b143fea4105e1d0863df@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:04:07.873077"], ["updated_at", "2015-10-30 14:04:07.873077"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:04:07.875753"], ["updated_at", "2015-10-30 14:04:07.875753"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:07.878376"], ["updated_at", "2015-10-30 14:04:07.878376"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.879963"], ["updated_at", "2015-10-30 14:04:07.879963"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.881887"], ["updated_at", "2015-10-30 14:04:07.881887"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.8ms Sent mail to user8@sleede.com (3.0ms) Date: Fri, 30 Oct 2015 15:04:07 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563378d7d932b_7b143fea4105e1d0864ae@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:07.896663"], ["updated_at", "2015-10-30 14:04:07.896663"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:04:07.899228"], ["updated_at", "2015-10-30 14:04:07.899228"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:07.903193"], ["updated_at", "2015-10-30 14:04:07.903193"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.905617"], ["updated_at", "2015-10-30 14:04:07.905617"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.907480"], ["updated_at", "2015-10-30 14:04:07.907480"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:04:07 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563378d7de677_7b143fea4105e1d086546@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:04:07.915493"], ["updated_at", "2015-10-30 14:04:07.915493"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:04:07.917859"], ["updated_at", "2015-10-30 14:04:07.917859"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:07.920516"], ["updated_at", "2015-10-30 14:04:07.920516"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:07.921984"], ["updated_at", "2015-10-30 14:04:07.921984"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.925607"], ["updated_at", "2015-10-30 14:04:07.925607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms Sent mail to user10@sleede.com (1.8ms) Date: Fri, 30 Oct 2015 15:04:07 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563378d7e30a7_7b143fea4105e1d086674@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.934345"], ["updated_at", "2015-10-30 14:04:07.934345"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:04:07.936592"], ["updated_at", "2015-10-30 14:04:07.936592"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.944319"], ["updated_at", "2015-10-30 14:04:07.944319"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:07.949757"], ["updated_at", "2015-10-30 14:04:07.949757"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.951412"], ["updated_at", "2015-10-30 14:04:07.951412"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.960573"], ["updated_at", "2015-10-30 14:04:07.960573"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:04:07.962330"], ["updated_at", "2015-10-30 14:04:07.962330"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.964595"], ["updated_at", "2015-10-30 14:04:07.964595"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:07.966999"], ["updated_at", "2015-10-30 14:04:07.966999"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:04:07.969162"], ["updated_at", "2015-10-30 14:04:07.969162"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:07.972374"], ["updated_at", "2015-10-30 14:04:07.972374"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.974020"], ["updated_at", "2015-10-30 14:04:07.974020"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:07.975848"], ["updated_at", "2015-10-30 14:04:07.975848"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:07.982412"], ["updated_at", "2015-10-30 14:04:07.982412"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:04:07.985482"], ["updated_at", "2015-10-30 14:04:07.985482"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:07.990488"], ["updated_at", "2015-10-30 14:04:07.990488"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.000084"], ["updated_at", "2015-10-30 14:04:08.000084"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:04:08.002368"], ["updated_at", "2015-10-30 14:04:08.002368"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.005159"], ["updated_at", "2015-10-30 14:04:08.005159"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:08.006713"], ["updated_at", "2015-10-30 14:04:08.006713"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.008569"], ["updated_at", "2015-10-30 14:04:08.008569"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:08.011982"], ["updated_at", "2015-10-30 14:04:08.011982"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:04:08.013762"], ["updated_at", "2015-10-30 14:04:08.013762"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.016728"], ["updated_at", "2015-10-30 14:04:08.016728"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.019381"], ["updated_at", "2015-10-30 14:04:08.019381"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.025816"], ["updated_at", "2015-10-30 14:04:08.025816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:04:08.027702"], ["updated_at", "2015-10-30 14:04:08.027702"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.032736"], ["updated_at", "2015-10-30 14:04:08.032736"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.037326"], ["updated_at", "2015-10-30 14:04:08.037326"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:08.042273"], ["updated_at", "2015-10-30 14:04:08.042273"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:04:08.044049"], ["updated_at", "2015-10-30 14:04:08.044049"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.046371"], ["updated_at", "2015-10-30 14:04:08.046371"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.049254"], ["updated_at", "2015-10-30 14:04:08.049254"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:04:08.055389"], ["updated_at", "2015-10-30 14:04:08.055389"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.061999"], ["updated_at", "2015-10-30 14:04:08.061999"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:08.063850"], ["updated_at", "2015-10-30 14:04:08.063850"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.066003"], ["updated_at", "2015-10-30 14:04:08.066003"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.070588"], ["updated_at", "2015-10-30 14:04:08.070588"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:04:08.072493"], ["updated_at", "2015-10-30 14:04:08.072493"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.074895"], ["updated_at", "2015-10-30 14:04:08.074895"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.077284"], ["updated_at", "2015-10-30 14:04:08.077284"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:04:08.078782"], ["updated_at", "2015-10-30 14:04:08.078782"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.081510"], ["updated_at", "2015-10-30 14:04:08.081510"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:08.083004"], ["updated_at", "2015-10-30 14:04:08.083004"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.084827"], ["updated_at", "2015-10-30 14:04:08.084827"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:04:08.090489"], ["updated_at", "2015-10-30 14:04:08.090489"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.094668"], ["updated_at", "2015-10-30 14:04:08.094668"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.098612"], ["updated_at", "2015-10-30 14:04:08.098612"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:04:08.112586"], ["updated_at", "2015-10-30 14:04:08.112586"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.115375"], ["updated_at", "2015-10-30 14:04:08.115375"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.118531"], ["updated_at", "2015-10-30 14:04:08.118531"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:04:08.123299"], ["updated_at", "2015-10-30 14:04:08.123299"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.125938"], ["updated_at", "2015-10-30 14:04:08.125938"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.128926"], ["updated_at", "2015-10-30 14:04:08.128926"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:04:08.135455"], ["updated_at", "2015-10-30 14:04:08.135455"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.140387"], ["updated_at", "2015-10-30 14:04:08.140387"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.144734"], ["updated_at", "2015-10-30 14:04:08.144734"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:04:08.148526"], ["updated_at", "2015-10-30 14:04:08.148526"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.157045"], ["updated_at", "2015-10-30 14:04:08.157045"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.162766"], ["updated_at", "2015-10-30 14:04:08.162766"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.167244"], ["updated_at", "2015-10-30 14:04:08.167244"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.171652"], ["updated_at", "2015-10-30 14:04:08.171652"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:04:08.173621"], ["updated_at", "2015-10-30 14:04:08.173621"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.176322"], ["updated_at", "2015-10-30 14:04:08.176322"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:04:08.177699"], ["updated_at", "2015-10-30 14:04:08.177699"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.179854"], ["updated_at", "2015-10-30 14:04:08.179854"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:04:08.181558"], ["updated_at", "2015-10-30 14:04:08.181558"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.183915"], ["updated_at", "2015-10-30 14:04:08.183915"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:04:08.185448"], ["updated_at", "2015-10-30 14:04:08.185448"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.187905"], ["updated_at", "2015-10-30 14:04:08.187905"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:04:08.194251"], ["id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 14:04:08.198783"], ["id", 3]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:04:08.211646"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.218945"], ["updated_at", "2015-10-30 14:04:08.218945"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 9.9ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:04:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563378d83858e_7b143fea4105e1d086731@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:08.232771"], ["updated_at", "2015-10-30 14:04:08.232771"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:08.234949"], ["updated_at", "2015-10-30 14:04:08.234949"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.236674"], ["updated_at", "2015-10-30 14:04:08.236674"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:04:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563378d83a8f3_7b143fea4105e1d086812@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.243662"], ["updated_at", "2015-10-30 14:04:08.243662"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:04:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563378d83c418_7b143fea4105e1d0869fa@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:08.248280"], ["updated_at", "2015-10-30 14:04:08.248280"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:08.249726"], ["updated_at", "2015-10-30 14:04:08.249726"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.251019"], ["updated_at", "2015-10-30 14:04:08.251019"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 2.0ms Sent mail to user30@sleede.com (1.8ms) Date: Fri, 30 Oct 2015 15:04:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563378d83e46e_7b143fea4105e1d0870c8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.259460"], ["updated_at", "2015-10-30 14:04:08.259460"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:04:08 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563378d840154_7b143fea4105e1d087123@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:08.264015"], ["updated_at", "2015-10-30 14:04:08.264015"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:08.265508"], ["updated_at", "2015-10-30 14:04:08.265508"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.266829"], ["updated_at", "2015-10-30 14:04:08.266829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:04:08 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563378d841e62_7b143fea4105e1d08725@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:04:08.279145"], ["updated_at", "2015-10-30 14:04:08.279145"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:08.281506"], ["updated_at", "2015-10-30 14:04:08.281506"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.284515"], ["updated_at", "2015-10-30 14:04:08.284515"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.287053"], ["updated_at", "2015-10-30 14:04:08.287053"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:08.288621"], ["updated_at", "2015-10-30 14:04:08.288621"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:04:08.296088"], ["updated_at", "2015-10-30 14:04:08.296088"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:08.298537"], ["updated_at", "2015-10-30 14:04:08.298537"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:08.301396"], ["updated_at", "2015-10-30 14:04:08.301396"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:08.314935"], ["updated_at", "2015-10-30 14:04:08.314935"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:04:08.317478"], ["updated_at", "2015-10-30 14:04:08.317478"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:08.319963"], ["updated_at", "2015-10-30 14:04:08.319963"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:04:52.282671"], ["updated_at", "2015-10-30 14:04:52.282671"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.298185"], ["updated_at", "2015-10-30 14:04:52.298185"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.315938"], ["updated_at", "2015-10-30 14:04:52.315938"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.332447"], ["updated_at", "2015-10-30 14:04:52.332447"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.341436"], ["updated_at", "2015-10-30 14:04:52.341436"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as HTML [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 0.2ms) [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:04:52.371094"], ["updated_at", "2015-10-30 14:04:52.371094"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.373406"], ["updated_at", "2015-10-30 14:04:52.373406"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.376044"], ["updated_at", "2015-10-30 14:04:52.376044"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.378581"], ["updated_at", "2015-10-30 14:04:52.378581"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.380531"], ["updated_at", "2015-10-30 14:04:52.380531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as HTML [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:04:52.390990"], ["updated_at", "2015-10-30 14:04:52.390990"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.393394"], ["updated_at", "2015-10-30 14:04:52.393394"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.395838"], ["updated_at", "2015-10-30 14:04:52.395838"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.398310"], ["updated_at", "2015-10-30 14:04:52.398310"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.400146"], ["updated_at", "2015-10-30 14:04:52.400146"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as HTML Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:04:52.418633"], ["updated_at", "2015-10-30 14:04:52.418633"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.421487"], ["updated_at", "2015-10-30 14:04:52.421487"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.427843"], ["updated_at", "2015-10-30 14:04:52.427843"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.434827"], ["updated_at", "2015-10-30 14:04:52.434827"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.437070"], ["updated_at", "2015-10-30 14:04:52.437070"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as HTML Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:04:52.458963"], ["updated_at", "2015-10-30 14:04:52.458963"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.461791"], ["updated_at", "2015-10-30 14:04:52.461791"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.465705"], ["updated_at", "2015-10-30 14:04:52.465705"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.469178"], ["updated_at", "2015-10-30 14:04:52.469178"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.471053"], ["updated_at", "2015-10-30 14:04:52.471053"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as HTML [1m[36mWupee::Notification Load (0.6ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.3ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.8ms) [1m[36mWupee::Notification Load (0.4ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:52.630145"], ["updated_at", "2015-10-30 14:04:52.630145"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:04:52.632316"], ["updated_at", "2015-10-30 14:04:52.632316"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.635412"], ["updated_at", "2015-10-30 14:04:52.635412"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.637243"], ["updated_at", "2015-10-30 14:04:52.637243"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.638834"], ["updated_at", "2015-10-30 14:04:52.638834"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:52.644923"], ["updated_at", "2015-10-30 14:04:52.644923"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:04:52.647092"], ["updated_at", "2015-10-30 14:04:52.647092"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.649869"], ["updated_at", "2015-10-30 14:04:52.649869"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.651343"], ["updated_at", "2015-10-30 14:04:52.651343"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.653318"], ["updated_at", "2015-10-30 14:04:52.653318"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (1.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 16.1ms Sent mail to user7@sleede.com (8.1ms) Date: Fri, 30 Oct 2015 15:04:52 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56337904a5207_7b223fd48c8601dc979bb@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:04:52.684658"], ["updated_at", "2015-10-30 14:04:52.684658"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:04:52.688168"], ["updated_at", "2015-10-30 14:04:52.688168"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.697808"], ["updated_at", "2015-10-30 14:04:52.697808"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.700977"], ["updated_at", "2015-10-30 14:04:52.700977"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.702834"], ["updated_at", "2015-10-30 14:04:52.702834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.4ms Sent mail to user8@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:04:52 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56337904aca9a_7b223fd48c8601dc9800@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:52.711736"], ["updated_at", "2015-10-30 14:04:52.711736"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:04:52.713868"], ["updated_at", "2015-10-30 14:04:52.713868"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.716621"], ["updated_at", "2015-10-30 14:04:52.716621"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.718046"], ["updated_at", "2015-10-30 14:04:52.718046"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.719963"], ["updated_at", "2015-10-30 14:04:52.719963"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user9@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:04:52 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56337904b0b93_7b223fd48c8601dc981d7@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:04:52.728160"], ["updated_at", "2015-10-30 14:04:52.728160"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:04:52.732436"], ["updated_at", "2015-10-30 14:04:52.732436"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.736683"], ["updated_at", "2015-10-30 14:04:52.736683"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.738687"], ["updated_at", "2015-10-30 14:04:52.738687"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.741252"], ["updated_at", "2015-10-30 14:04:52.741252"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.2ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.5ms Sent mail to user10@sleede.com (2.4ms) Date: Fri, 30 Oct 2015 15:04:52 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56337904b721e_7b223fd48c8601dc98210@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.754134"], ["updated_at", "2015-10-30 14:04:52.754134"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:04:52.756418"], ["updated_at", "2015-10-30 14:04:52.756418"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.759349"], ["updated_at", "2015-10-30 14:04:52.759349"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.761730"], ["updated_at", "2015-10-30 14:04:52.761730"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.763795"], ["updated_at", "2015-10-30 14:04:52.763795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.774341"], ["updated_at", "2015-10-30 14:04:52.774341"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:04:52.775979"], ["updated_at", "2015-10-30 14:04:52.775979"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.778203"], ["updated_at", "2015-10-30 14:04:52.778203"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.780488"], ["updated_at", "2015-10-30 14:04:52.780488"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:04:52.782057"], ["updated_at", "2015-10-30 14:04:52.782057"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.785491"], ["updated_at", "2015-10-30 14:04:52.785491"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.787946"], ["updated_at", "2015-10-30 14:04:52.787946"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.790956"], ["updated_at", "2015-10-30 14:04:52.790956"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.795162"], ["updated_at", "2015-10-30 14:04:52.795162"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:04:52.797104"], ["updated_at", "2015-10-30 14:04:52.797104"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.799445"], ["updated_at", "2015-10-30 14:04:52.799445"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.801747"], ["updated_at", "2015-10-30 14:04:52.801747"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:04:52.804057"], ["updated_at", "2015-10-30 14:04:52.804057"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.812665"], ["updated_at", "2015-10-30 14:04:52.812665"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.817214"], ["updated_at", "2015-10-30 14:04:52.817214"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.819925"], ["updated_at", "2015-10-30 14:04:52.819925"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.823794"], ["updated_at", "2015-10-30 14:04:52.823794"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:04:52.825462"], ["updated_at", "2015-10-30 14:04:52.825462"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.827712"], ["updated_at", "2015-10-30 14:04:52.827712"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.830036"], ["updated_at", "2015-10-30 14:04:52.830036"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.836079"], ["updated_at", "2015-10-30 14:04:52.836079"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:04:52.837895"], ["updated_at", "2015-10-30 14:04:52.837895"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.840442"], ["updated_at", "2015-10-30 14:04:52.840442"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.842770"], ["updated_at", "2015-10-30 14:04:52.842770"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.849052"], ["updated_at", "2015-10-30 14:04:52.849052"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:04:52.851936"], ["updated_at", "2015-10-30 14:04:52.851936"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.855641"], ["updated_at", "2015-10-30 14:04:52.855641"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.866068"], ["updated_at", "2015-10-30 14:04:52.866068"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:04:52.868787"], ["updated_at", "2015-10-30 14:04:52.868787"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.871567"], ["updated_at", "2015-10-30 14:04:52.871567"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:52.873122"], ["updated_at", "2015-10-30 14:04:52.873122"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.874869"], ["updated_at", "2015-10-30 14:04:52.874869"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.879587"], ["updated_at", "2015-10-30 14:04:52.879587"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:04:52.881301"], ["updated_at", "2015-10-30 14:04:52.881301"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.883647"], ["updated_at", "2015-10-30 14:04:52.883647"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.886056"], ["updated_at", "2015-10-30 14:04:52.886056"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:04:52.888601"], ["updated_at", "2015-10-30 14:04:52.888601"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.891875"], ["updated_at", "2015-10-30 14:04:52.891875"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:04:52.893522"], ["updated_at", "2015-10-30 14:04:52.893522"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:52.896634"], ["updated_at", "2015-10-30 14:04:52.896634"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:04:52.901671"], ["updated_at", "2015-10-30 14:04:52.901671"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.905032"], ["updated_at", "2015-10-30 14:04:52.905032"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.912560"], ["updated_at", "2015-10-30 14:04:52.912560"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:04:52.921089"], ["updated_at", "2015-10-30 14:04:52.921089"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.924015"], ["updated_at", "2015-10-30 14:04:52.924015"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.926729"], ["updated_at", "2015-10-30 14:04:52.926729"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:04:52.931142"], ["updated_at", "2015-10-30 14:04:52.931142"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.933815"], ["updated_at", "2015-10-30 14:04:52.933815"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.936660"], ["updated_at", "2015-10-30 14:04:52.936660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:04:52.942984"], ["updated_at", "2015-10-30 14:04:52.942984"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.947882"], ["updated_at", "2015-10-30 14:04:52.947882"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.951699"], ["updated_at", "2015-10-30 14:04:52.951699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:04:52.955429"], ["updated_at", "2015-10-30 14:04:52.955429"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.962218"], ["updated_at", "2015-10-30 14:04:52.962218"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:52.968669"], ["updated_at", "2015-10-30 14:04:52.968669"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.972702"], ["updated_at", "2015-10-30 14:04:52.972702"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:52.976247"], ["updated_at", "2015-10-30 14:04:52.976247"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:04:52.977925"], ["updated_at", "2015-10-30 14:04:52.977925"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.980463"], ["updated_at", "2015-10-30 14:04:52.980463"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:04:52.982048"], ["updated_at", "2015-10-30 14:04:52.982048"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.984254"], ["updated_at", "2015-10-30 14:04:52.984254"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:04:52.985936"], ["updated_at", "2015-10-30 14:04:52.985936"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.989048"], ["updated_at", "2015-10-30 14:04:52.989048"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:04:52.990486"], ["updated_at", "2015-10-30 14:04:52.990486"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:52.992938"], ["updated_at", "2015-10-30 14:04:52.992938"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:04:53.000412"], ["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 14:04:53.004454"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:04:53.010655"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.5ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:53.020934"], ["updated_at", "2015-10-30 14:04:53.020934"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 11.8ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:04:53 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633790587ec_7b223fd48c8601dc9838f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:53.036794"], ["updated_at", "2015-10-30 14:04:53.036794"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:53.038721"], ["updated_at", "2015-10-30 14:04:53.038721"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:53.040145"], ["updated_at", "2015-10-30 14:04:53.040145"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:04:53 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337905a829_7b223fd48c8601dc9842d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:53.046631"], ["updated_at", "2015-10-30 14:04:53.046631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:04:53 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337905c127_7b223fd48c8601dc98539@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:53.050835"], ["updated_at", "2015-10-30 14:04:53.050835"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:53.052137"], ["updated_at", "2015-10-30 14:04:53.052137"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:53.053703"], ["updated_at", "2015-10-30 14:04:53.053703"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:04:53 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337905dda5_7b223fd48c8601dc986a8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:53.060632"], ["updated_at", "2015-10-30 14:04:53.060632"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:04:53 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337905f8cd_7b223fd48c8601dc9878a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:53.065254"], ["updated_at", "2015-10-30 14:04:53.065254"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:04:53.066816"], ["updated_at", "2015-10-30 14:04:53.066816"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:53.068302"], ["updated_at", "2015-10-30 14:04:53.068302"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:04:53 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337905117aa_7b223fd48c8601dc988e6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:04:53.080894"], ["updated_at", "2015-10-30 14:04:53.080894"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:04:53.083179"], ["updated_at", "2015-10-30 14:04:53.083179"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:53.086275"], ["updated_at", "2015-10-30 14:04:53.086275"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:53.088992"], ["updated_at", "2015-10-30 14:04:53.088992"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:04:53.090753"], ["updated_at", "2015-10-30 14:04:53.090753"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:04:53.098491"], ["updated_at", "2015-10-30 14:04:53.098491"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:04:53.100895"], ["updated_at", "2015-10-30 14:04:53.100895"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:04:53.103694"], ["updated_at", "2015-10-30 14:04:53.103694"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:04:53.116107"], ["updated_at", "2015-10-30 14:04:53.116107"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:04:53.119474"], ["updated_at", "2015-10-30 14:04:53.119474"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:04:53.124790"], ["updated_at", "2015-10-30 14:04:53.124790"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:32:45.167838"], ["updated_at", "2015-10-30 14:32:45.167838"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.182194"], ["updated_at", "2015-10-30 14:32:45.182194"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.205419"], ["updated_at", "2015-10-30 14:32:45.205419"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.226502"], ["updated_at", "2015-10-30 14:32:45.226502"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.230526"], ["updated_at", "2015-10-30 14:32:45.230526"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 0.2ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:32:45.259309"], ["updated_at", "2015-10-30 14:32:45.259309"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.262467"], ["updated_at", "2015-10-30 14:32:45.262467"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.265501"], ["updated_at", "2015-10-30 14:32:45.265501"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.269455"], ["updated_at", "2015-10-30 14:32:45.269455"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.271329"], ["updated_at", "2015-10-30 14:32:45.271329"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:32:45.283731"], ["updated_at", "2015-10-30 14:32:45.283731"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.286158"], ["updated_at", "2015-10-30 14:32:45.286158"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.288611"], ["updated_at", "2015-10-30 14:32:45.288611"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.291778"], ["updated_at", "2015-10-30 14:32:45.291778"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.294834"], ["updated_at", "2015-10-30 14:32:45.294834"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:32:45.320782"], ["updated_at", "2015-10-30 14:32:45.320782"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.323263"], ["updated_at", "2015-10-30 14:32:45.323263"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.325632"], ["updated_at", "2015-10-30 14:32:45.325632"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.327874"], ["updated_at", "2015-10-30 14:32:45.327874"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.329662"], ["updated_at", "2015-10-30 14:32:45.329662"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/show.json.jbuilder (9.4ms) Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:32:45.360018"], ["updated_at", "2015-10-30 14:32:45.360018"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.362510"], ["updated_at", "2015-10-30 14:32:45.362510"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.364866"], ["updated_at", "2015-10-30 14:32:45.364866"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.367052"], ["updated_at", "2015-10-30 14:32:45.367052"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.368806"], ["updated_at", "2015-10-30 14:32:45.368806"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.2ms) [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:32:45.553979"], ["updated_at", "2015-10-30 14:32:45.553979"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:32:45.556195"], ["updated_at", "2015-10-30 14:32:45.556195"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.559956"], ["updated_at", "2015-10-30 14:32:45.559956"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.562045"], ["updated_at", "2015-10-30 14:32:45.562045"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.563821"], ["updated_at", "2015-10-30 14:32:45.563821"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:32:45.570493"], ["updated_at", "2015-10-30 14:32:45.570493"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:32:45.573584"], ["updated_at", "2015-10-30 14:32:45.573584"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.576925"], ["updated_at", "2015-10-30 14:32:45.576925"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.578871"], ["updated_at", "2015-10-30 14:32:45.578871"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.580491"], ["updated_at", "2015-10-30 14:32:45.580491"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 17.1ms Sent mail to user7@sleede.com (8.3ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56337f8d939d1_7c8f3fd3ed4601d045596@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:32:45.613086"], ["updated_at", "2015-10-30 14:32:45.613086"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:32:45.615471"], ["updated_at", "2015-10-30 14:32:45.615471"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.617956"], ["updated_at", "2015-10-30 14:32:45.617956"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.619511"], ["updated_at", "2015-10-30 14:32:45.619511"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.625987"], ["updated_at", "2015-10-30 14:32:45.625987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.2ms Sent mail to user8@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56337f8d9a9bf_7c8f3fd3ed4601d0456b8@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:32:45.637847"], ["updated_at", "2015-10-30 14:32:45.637847"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:32:45.640566"], ["updated_at", "2015-10-30 14:32:45.640566"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.643615"], ["updated_at", "2015-10-30 14:32:45.643615"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.645090"], ["updated_at", "2015-10-30 14:32:45.645090"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.646520"], ["updated_at", "2015-10-30 14:32:45.646520"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56337f8d9e8bd_7c8f3fd3ed4601d04576a@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:32:45.653289"], ["updated_at", "2015-10-30 14:32:45.653289"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:32:45.655154"], ["updated_at", "2015-10-30 14:32:45.655154"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.657559"], ["updated_at", "2015-10-30 14:32:45.657559"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.659220"], ["updated_at", "2015-10-30 14:32:45.659220"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.662610"], ["updated_at", "2015-10-30 14:32:45.662610"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56337f8da2ac6_7c8f3fd3ed4601d0458ef@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.670004"], ["updated_at", "2015-10-30 14:32:45.670004"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:32:45.677041"], ["updated_at", "2015-10-30 14:32:45.677041"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.684131"], ["updated_at", "2015-10-30 14:32:45.684131"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.686379"], ["updated_at", "2015-10-30 14:32:45.686379"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.687822"], ["updated_at", "2015-10-30 14:32:45.687822"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.696542"], ["updated_at", "2015-10-30 14:32:45.696542"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:32:45.698115"], ["updated_at", "2015-10-30 14:32:45.698115"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.700116"], ["updated_at", "2015-10-30 14:32:45.700116"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.702235"], ["updated_at", "2015-10-30 14:32:45.702235"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:32:45.703614"], ["updated_at", "2015-10-30 14:32:45.703614"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.706445"], ["updated_at", "2015-10-30 14:32:45.706445"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.708334"], ["updated_at", "2015-10-30 14:32:45.708334"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.711769"], ["updated_at", "2015-10-30 14:32:45.711769"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.715724"], ["updated_at", "2015-10-30 14:32:45.715724"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:32:45.717682"], ["updated_at", "2015-10-30 14:32:45.717682"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.720668"], ["updated_at", "2015-10-30 14:32:45.720668"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.729729"], ["updated_at", "2015-10-30 14:32:45.729729"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:32:45.733010"], ["updated_at", "2015-10-30 14:32:45.733010"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.735947"], ["updated_at", "2015-10-30 14:32:45.735947"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.737425"], ["updated_at", "2015-10-30 14:32:45.737425"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.739251"], ["updated_at", "2015-10-30 14:32:45.739251"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.743012"], ["updated_at", "2015-10-30 14:32:45.743012"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:32:45.744933"], ["updated_at", "2015-10-30 14:32:45.744933"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.747079"], ["updated_at", "2015-10-30 14:32:45.747079"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.749236"], ["updated_at", "2015-10-30 14:32:45.749236"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.755000"], ["updated_at", "2015-10-30 14:32:45.755000"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:32:45.756515"], ["updated_at", "2015-10-30 14:32:45.756515"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.761022"], ["updated_at", "2015-10-30 14:32:45.761022"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.764575"], ["updated_at", "2015-10-30 14:32:45.764575"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.769310"], ["updated_at", "2015-10-30 14:32:45.769310"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:32:45.775329"], ["updated_at", "2015-10-30 14:32:45.775329"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.781798"], ["updated_at", "2015-10-30 14:32:45.781798"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.784226"], ["updated_at", "2015-10-30 14:32:45.784226"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:32:45.785748"], ["updated_at", "2015-10-30 14:32:45.785748"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.788419"], ["updated_at", "2015-10-30 14:32:45.788419"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.790195"], ["updated_at", "2015-10-30 14:32:45.790195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.791955"], ["updated_at", "2015-10-30 14:32:45.791955"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.795793"], ["updated_at", "2015-10-30 14:32:45.795793"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:32:45.797332"], ["updated_at", "2015-10-30 14:32:45.797332"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.799387"], ["updated_at", "2015-10-30 14:32:45.799387"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.801641"], ["updated_at", "2015-10-30 14:32:45.801641"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:32:45.803088"], ["updated_at", "2015-10-30 14:32:45.803088"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.806235"], ["updated_at", "2015-10-30 14:32:45.806235"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:32:45.809792"], ["updated_at", "2015-10-30 14:32:45.809792"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.812243"], ["updated_at", "2015-10-30 14:32:45.812243"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:32:45.816146"], ["updated_at", "2015-10-30 14:32:45.816146"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.818296"], ["updated_at", "2015-10-30 14:32:45.818296"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.825644"], ["updated_at", "2015-10-30 14:32:45.825644"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:32:45.834485"], ["updated_at", "2015-10-30 14:32:45.834485"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.836745"], ["updated_at", "2015-10-30 14:32:45.836745"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.839191"], ["updated_at", "2015-10-30 14:32:45.839191"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:32:45.844130"], ["updated_at", "2015-10-30 14:32:45.844130"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.846387"], ["updated_at", "2015-10-30 14:32:45.846387"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.848850"], ["updated_at", "2015-10-30 14:32:45.848850"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:32:45.854280"], ["updated_at", "2015-10-30 14:32:45.854280"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.857437"], ["updated_at", "2015-10-30 14:32:45.857437"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.862061"], ["updated_at", "2015-10-30 14:32:45.862061"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:32:45.866516"], ["updated_at", "2015-10-30 14:32:45.866516"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.868827"], ["updated_at", "2015-10-30 14:32:45.868827"]] [1m[36m (0.6ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:45.880005"], ["updated_at", "2015-10-30 14:32:45.880005"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.884960"], ["updated_at", "2015-10-30 14:32:45.884960"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:45.889002"], ["updated_at", "2015-10-30 14:32:45.889002"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:32:45.890703"], ["updated_at", "2015-10-30 14:32:45.890703"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.893198"], ["updated_at", "2015-10-30 14:32:45.893198"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:32:45.895138"], ["updated_at", "2015-10-30 14:32:45.895138"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.897574"], ["updated_at", "2015-10-30 14:32:45.897574"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:32:45.898940"], ["updated_at", "2015-10-30 14:32:45.898940"]] [1m[36m (0.0ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.900979"], ["updated_at", "2015-10-30 14:32:45.900979"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:32:45.902224"], ["updated_at", "2015-10-30 14:32:45.902224"]] [1m[35m (0.0ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:45.904181"], ["updated_at", "2015-10-30 14:32:45.904181"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:32:45.909097"], ["id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 14:32:45.915246"], ["id", 3]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:32:45.918850"], ["id", 4]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.932304"], ["updated_at", "2015-10-30 14:32:45.932304"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 11.0ms Sent mail to user27@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337f8de6bd7_7c8f3fd3ed4601d045963@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:32:45.946917"], ["updated_at", "2015-10-30 14:32:45.946917"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:32:45.950371"], ["updated_at", "2015-10-30 14:32:45.950371"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.954107"], ["updated_at", "2015-10-30 14:32:45.954107"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337f8de9d46_7c8f3fd3ed4601d04607e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.961622"], ["updated_at", "2015-10-30 14:32:45.961622"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337f8deb73d_7c8f3fd3ed4601d0461ea@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:32:45.965819"], ["updated_at", "2015-10-30 14:32:45.965819"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:32:45.967179"], ["updated_at", "2015-10-30 14:32:45.967179"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.968563"], ["updated_at", "2015-10-30 14:32:45.968563"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337f8ded192_7c8f3fd3ed4601d046224@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.975746"], ["updated_at", "2015-10-30 14:32:45.975746"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56337f8def041_7c8f3fd3ed4601d0463a0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:32:45.980508"], ["updated_at", "2015-10-30 14:32:45.980508"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:32:45.981995"], ["updated_at", "2015-10-30 14:32:45.981995"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:45.983369"], ["updated_at", "2015-10-30 14:32:45.983369"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:32:45 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56337f8df0b53_7c8f3fd3ed4601d04647c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[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 rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:32:45.994951"], ["updated_at", "2015-10-30 14:32:45.994951"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:32:45.997417"], ["updated_at", "2015-10-30 14:32:45.997417"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:46.000115"], ["updated_at", "2015-10-30 14:32:46.000115"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:46.002512"], ["updated_at", "2015-10-30 14:32:46.002512"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:32:46.004086"], ["updated_at", "2015-10-30 14:32:46.004086"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:32:46.011455"], ["updated_at", "2015-10-30 14:32:46.011455"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:32:46.014005"], ["updated_at", "2015-10-30 14:32:46.014005"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:32:46.016677"], ["updated_at", "2015-10-30 14:32:46.016677"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:32:46.026788"], ["updated_at", "2015-10-30 14:32:46.026788"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:32:46.029527"], ["updated_at", "2015-10-30 14:32:46.029527"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:32:46.032901"], ["updated_at", "2015-10-30 14:32:46.032901"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:40:42.337974"], ["updated_at", "2015-10-30 14:40:42.337974"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.352567"], ["updated_at", "2015-10-30 14:40:42.352567"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.374138"], ["updated_at", "2015-10-30 14:40:42.374138"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.393873"], ["updated_at", "2015-10-30 14:40:42.393873"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.397667"], ["updated_at", "2015-10-30 14:40:42.397667"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 11.2ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:40:42.435460"], ["updated_at", "2015-10-30 14:40:42.435460"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.437768"], ["updated_at", "2015-10-30 14:40:42.437768"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.440813"], ["updated_at", "2015-10-30 14:40:42.440813"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.443670"], ["updated_at", "2015-10-30 14:40:42.443670"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.445381"], ["updated_at", "2015-10-30 14:40:42.445381"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/index.json.jbuilder (8.9ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.2ms) [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.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:40:42.462245"], ["updated_at", "2015-10-30 14:40:42.462245"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.472995"], ["updated_at", "2015-10-30 14:40:42.472995"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.475881"], ["updated_at", "2015-10-30 14:40:42.475881"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.479427"], ["updated_at", "2015-10-30 14:40:42.479427"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.481295"], ["updated_at", "2015-10-30 14:40:42.481295"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/show.json.jbuilder (2.7ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:40:42.502913"], ["updated_at", "2015-10-30 14:40:42.502913"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.504940"], ["updated_at", "2015-10-30 14:40:42.504940"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.507547"], ["updated_at", "2015-10-30 14:40:42.507547"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.510085"], ["updated_at", "2015-10-30 14:40:42.510085"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.512204"], ["updated_at", "2015-10-30 14:40:42.512204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/show.json.jbuilder (2.3ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:40:42.523433"], ["updated_at", "2015-10-30 14:40:42.523433"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.525898"], ["updated_at", "2015-10-30 14:40:42.525898"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.528306"], ["updated_at", "2015-10-30 14:40:42.528306"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.530511"], ["updated_at", "2015-10-30 14:40:42.530511"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.532273"], ["updated_at", "2015-10-30 14:40:42.532273"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.4ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:40:42.694449"], ["updated_at", "2015-10-30 14:40:42.694449"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:40:42.696471"], ["updated_at", "2015-10-30 14:40:42.696471"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.699516"], ["updated_at", "2015-10-30 14:40:42.699516"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.700995"], ["updated_at", "2015-10-30 14:40:42.700995"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.702345"], ["updated_at", "2015-10-30 14:40:42.702345"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:40:42.708305"], ["updated_at", "2015-10-30 14:40:42.708305"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:40:42.710233"], ["updated_at", "2015-10-30 14:40:42.710233"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.712899"], ["updated_at", "2015-10-30 14:40:42.712899"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.714397"], ["updated_at", "2015-10-30 14:40:42.714397"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.715842"], ["updated_at", "2015-10-30 14:40:42.715842"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.0ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 16.9ms Sent mail to user7@sleede.com (8.9ms) Date: Fri, 30 Oct 2015 15:40:42 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5633816ab4987_7d053fdba0c601e02296a@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:40:42.749176"], ["updated_at", "2015-10-30 14:40:42.749176"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:40:42.752446"], ["updated_at", "2015-10-30 14:40:42.752446"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.755976"], ["updated_at", "2015-10-30 14:40:42.755976"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.758763"], ["updated_at", "2015-10-30 14:40:42.758763"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.761055"], ["updated_at", "2015-10-30 14:40:42.761055"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.5ms Sent mail to user8@sleede.com (2.8ms) Date: Fri, 30 Oct 2015 15:40:42 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5633816abb077_7d053fdba0c601e0230d0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:40:42.774972"], ["updated_at", "2015-10-30 14:40:42.774972"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:40:42.776964"], ["updated_at", "2015-10-30 14:40:42.776964"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.779767"], ["updated_at", "2015-10-30 14:40:42.779767"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.781278"], ["updated_at", "2015-10-30 14:40:42.781278"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.782531"], ["updated_at", "2015-10-30 14:40:42.782531"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:40:42 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5633816abfbe1_7d053fdba0c601e023160@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [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[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:40:42.790635"], ["updated_at", "2015-10-30 14:40:42.790635"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:40:42.792909"], ["updated_at", "2015-10-30 14:40:42.792909"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.795526"], ["updated_at", "2015-10-30 14:40:42.795526"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.796904"], ["updated_at", "2015-10-30 14:40:42.796904"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.798515"], ["updated_at", "2015-10-30 14:40:42.798515"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.7ms) Date: Fri, 30 Oct 2015 15:40:42 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5633816ac3aaf_7d053fdba0c601e02324d@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.1ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.805941"], ["updated_at", "2015-10-30 14:40:42.805941"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:40:42.808250"], ["updated_at", "2015-10-30 14:40:42.808250"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.811744"], ["updated_at", "2015-10-30 14:40:42.811744"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.818205"], ["updated_at", "2015-10-30 14:40:42.818205"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.824783"], ["updated_at", "2015-10-30 14:40:42.824783"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.833760"], ["updated_at", "2015-10-30 14:40:42.833760"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:40:42.835286"], ["updated_at", "2015-10-30 14:40:42.835286"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.837345"], ["updated_at", "2015-10-30 14:40:42.837345"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.839860"], ["updated_at", "2015-10-30 14:40:42.839860"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:40:42.841573"], ["updated_at", "2015-10-30 14:40:42.841573"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.844217"], ["updated_at", "2015-10-30 14:40:42.844217"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.845811"], ["updated_at", "2015-10-30 14:40:42.845811"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.847833"], ["updated_at", "2015-10-30 14:40:42.847833"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.852398"], ["updated_at", "2015-10-30 14:40:42.852398"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:40:42.854409"], ["updated_at", "2015-10-30 14:40:42.854409"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.857819"], ["updated_at", "2015-10-30 14:40:42.857819"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.861718"], ["updated_at", "2015-10-30 14:40:42.861718"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:40:42.865726"], ["updated_at", "2015-10-30 14:40:42.865726"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.874744"], ["updated_at", "2015-10-30 14:40:42.874744"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.876614"], ["updated_at", "2015-10-30 14:40:42.876614"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.878514"], ["updated_at", "2015-10-30 14:40:42.878514"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.882061"], ["updated_at", "2015-10-30 14:40:42.882061"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:40:42.883574"], ["updated_at", "2015-10-30 14:40:42.883574"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.885623"], ["updated_at", "2015-10-30 14:40:42.885623"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.887760"], ["updated_at", "2015-10-30 14:40:42.887760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.893669"], ["updated_at", "2015-10-30 14:40:42.893669"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:40:42.895582"], ["updated_at", "2015-10-30 14:40:42.895582"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.897944"], ["updated_at", "2015-10-30 14:40:42.897944"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.900375"], ["updated_at", "2015-10-30 14:40:42.900375"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.906729"], ["updated_at", "2015-10-30 14:40:42.906729"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:40:42.908820"], ["updated_at", "2015-10-30 14:40:42.908820"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.911111"], ["updated_at", "2015-10-30 14:40:42.911111"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.913263"], ["updated_at", "2015-10-30 14:40:42.913263"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:40:42.916802"], ["updated_at", "2015-10-30 14:40:42.916802"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.926581"], ["updated_at", "2015-10-30 14:40:42.926581"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:42.928344"], ["updated_at", "2015-10-30 14:40:42.928344"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.930410"], ["updated_at", "2015-10-30 14:40:42.930410"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.934634"], ["updated_at", "2015-10-30 14:40:42.934634"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:40:42.936377"], ["updated_at", "2015-10-30 14:40:42.936377"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.938674"], ["updated_at", "2015-10-30 14:40:42.938674"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.941649"], ["updated_at", "2015-10-30 14:40:42.941649"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:40:42.943209"], ["updated_at", "2015-10-30 14:40:42.943209"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:42.945804"], ["updated_at", "2015-10-30 14:40:42.945804"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:40:42.947232"], ["updated_at", "2015-10-30 14:40:42.947232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:42.949101"], ["updated_at", "2015-10-30 14:40:42.949101"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:40:42.953930"], ["updated_at", "2015-10-30 14:40:42.953930"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.958137"], ["updated_at", "2015-10-30 14:40:42.958137"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.962132"], ["updated_at", "2015-10-30 14:40:42.962132"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.5ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:40:42.972554"], ["updated_at", "2015-10-30 14:40:42.972554"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.976379"], ["updated_at", "2015-10-30 14:40:42.976379"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.979249"], ["updated_at", "2015-10-30 14:40:42.979249"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:40:42.984142"], ["updated_at", "2015-10-30 14:40:42.984142"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.986538"], ["updated_at", "2015-10-30 14:40:42.986538"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:42.989375"], ["updated_at", "2015-10-30 14:40:42.989375"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:40:42.996214"], ["updated_at", "2015-10-30 14:40:42.996214"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:42.998437"], ["updated_at", "2015-10-30 14:40:42.998437"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:43.000656"], ["updated_at", "2015-10-30 14:40:43.000656"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:40:43.005289"], ["updated_at", "2015-10-30 14:40:43.005289"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.008995"], ["updated_at", "2015-10-30 14:40:43.008995"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:43.012704"], ["updated_at", "2015-10-30 14:40:43.012704"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (1.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.025347"], ["updated_at", "2015-10-30 14:40:43.025347"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.032725"], ["updated_at", "2015-10-30 14:40:43.032725"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:40:43.036428"], ["updated_at", "2015-10-30 14:40:43.036428"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:43.041123"], ["updated_at", "2015-10-30 14:40:43.041123"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:40:43.042924"], ["updated_at", "2015-10-30 14:40:43.042924"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:43.045300"], ["updated_at", "2015-10-30 14:40:43.045300"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:40:43.046862"], ["updated_at", "2015-10-30 14:40:43.046862"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:43.056725"], ["updated_at", "2015-10-30 14:40:43.056725"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:40:43.062810"], ["updated_at", "2015-10-30 14:40:43.062810"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:43.068904"], ["updated_at", "2015-10-30 14:40:43.068904"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 14:40:43.074192"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:40:43.079100"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 14:40:43.092759"], ["id", 4]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:43.103131"], ["updated_at", "2015-10-30 14:40:43.103131"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 12.6ms Sent mail to user27@sleede.com (1.8ms) Date: Fri, 30 Oct 2015 15:40:43 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633816b1d0c0_7d053fdba0c601e02339b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:40:43.121047"], ["updated_at", "2015-10-30 14:40:43.121047"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:40:43.124257"], ["updated_at", "2015-10-30 14:40:43.124257"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:43.126852"], ["updated_at", "2015-10-30 14:40:43.126852"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms Sent mail to user30@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 15:40:43 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633816b2014b_7d053fdba0c601e02345b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:43.136858"], ["updated_at", "2015-10-30 14:40:43.136858"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 2.4ms Sent mail to user27@sleede.com (2.0ms) Date: Fri, 30 Oct 2015 15:40:43 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633816b22b66_7d053fdba0c601e023580@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:40:43.144329"], ["updated_at", "2015-10-30 14:40:43.144329"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:40:43.146537"], ["updated_at", "2015-10-30 14:40:43.146537"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:43.148923"], ["updated_at", "2015-10-30 14:40:43.148923"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 2.0ms Sent mail to user30@sleede.com (2.1ms) Date: Fri, 30 Oct 2015 15:40:43 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633816b2573c_7d053fdba0c601e02362a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:43.159448"], ["updated_at", "2015-10-30 14:40:43.159448"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms Sent mail to user27@sleede.com (1.8ms) Date: Fri, 30 Oct 2015 15:40:43 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633816b27e59_7d053fdba0c601e0237f2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:40:43.165839"], ["updated_at", "2015-10-30 14:40:43.165839"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:40:43.168066"], ["updated_at", "2015-10-30 14:40:43.168066"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:43.170242"], ["updated_at", "2015-10-30 14:40:43.170242"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 2.2ms Sent mail to user30@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 15:40:43 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633816b2acb5_7d053fdba0c601e0238c5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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.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.1ms)[0m begin transaction [1m[36m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:40:43.186627"], ["updated_at", "2015-10-30 14:40:43.186627"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:40:43.190863"], ["updated_at", "2015-10-30 14:40:43.190863"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.194654"], ["updated_at", "2015-10-30 14:40:43.194654"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:43.198402"], ["updated_at", "2015-10-30 14:40:43.198402"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:40:43.201395"], ["updated_at", "2015-10-30 14:40:43.201395"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:40:43.213916"], ["updated_at", "2015-10-30 14:40:43.213916"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:40:43.219192"], ["updated_at", "2015-10-30 14:40:43.219192"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:40:43.224088"], ["updated_at", "2015-10-30 14:40:43.224088"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:40:43.246226"], ["updated_at", "2015-10-30 14:40:43.246226"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:40:43.250298"], ["updated_at", "2015-10-30 14:40:43.250298"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:40:43.254769"], ["updated_at", "2015-10-30 14:40:43.254769"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:41:34.649201"], ["updated_at", "2015-10-30 14:41:34.649201"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:34.667013"], ["updated_at", "2015-10-30 14:41:34.667013"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.690007"], ["updated_at", "2015-10-30 14:41:34.690007"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:34.718725"], ["updated_at", "2015-10-30 14:41:34.718725"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:34.723004"], ["updated_at", "2015-10-30 14:41:34.723004"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:41:34.750722"], ["updated_at", "2015-10-30 14:41:34.750722"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:34.753004"], ["updated_at", "2015-10-30 14:41:34.753004"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.755463"], ["updated_at", "2015-10-30 14:41:34.755463"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:34.758118"], ["updated_at", "2015-10-30 14:41:34.758118"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:34.760826"], ["updated_at", "2015-10-30 14:41:34.760826"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms) [1m[36m (1.1ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:41:34.773173"], ["updated_at", "2015-10-30 14:41:34.773173"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:34.777238"], ["updated_at", "2015-10-30 14:41:34.777238"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.784456"], ["updated_at", "2015-10-30 14:41:34.784456"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:34.789627"], ["updated_at", "2015-10-30 14:41:34.789627"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:34.792126"], ["updated_at", "2015-10-30 14:41:34.792126"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.4ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Completed 200 OK in 8ms (Views: 2.0ms | ActiveRecord: 0.4ms) [1m[36m (1.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:41:34.818318"], ["updated_at", "2015-10-30 14:41:34.818318"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:34.820758"], ["updated_at", "2015-10-30 14:41:34.820758"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.823598"], ["updated_at", "2015-10-30 14:41:34.823598"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:34.826704"], ["updated_at", "2015-10-30 14:41:34.826704"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:34.828471"], ["updated_at", "2015-10-30 14:41:34.828471"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1 [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered wupee/api/notifications/show.json.jbuilder (11.7ms) Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 0.3ms) [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:41:34.860112"], ["updated_at", "2015-10-30 14:41:34.860112"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:34.866410"], ["updated_at", "2015-10-30 14:41:34.866410"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:34.874265"], ["updated_at", "2015-10-30 14:41:34.874265"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:34.877474"], ["updated_at", "2015-10-30 14:41:34.877474"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:34.879094"], ["updated_at", "2015-10-30 14:41:34.879094"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000[0m [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:41:35.081054"], ["updated_at", "2015-10-30 14:41:35.081054"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:41:35.084262"], ["updated_at", "2015-10-30 14:41:35.084262"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.087554"], ["updated_at", "2015-10-30 14:41:35.087554"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.089128"], ["updated_at", "2015-10-30 14:41:35.089128"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.091012"], ["updated_at", "2015-10-30 14:41:35.091012"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:41:35.098489"], ["updated_at", "2015-10-30 14:41:35.098489"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:41:35.100966"], ["updated_at", "2015-10-30 14:41:35.100966"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.103737"], ["updated_at", "2015-10-30 14:41:35.103737"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.105221"], ["updated_at", "2015-10-30 14:41:35.105221"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.107726"], ["updated_at", "2015-10-30 14:41:35.107726"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (1.8ms) [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 23.9ms Sent mail to user7@sleede.com (7.1ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5633819f21b4a_7d123fecc14601d451452@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:41:35.145362"], ["updated_at", "2015-10-30 14:41:35.145362"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:41:35.151194"], ["updated_at", "2015-10-30 14:41:35.151194"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.158315"], ["updated_at", "2015-10-30 14:41:35.158315"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.160092"], ["updated_at", "2015-10-30 14:41:35.160092"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.161660"], ["updated_at", "2015-10-30 14:41:35.161660"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user8@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5633819f284cc_7d123fecc14601d4515e@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:41:35.169632"], ["updated_at", "2015-10-30 14:41:35.169632"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:41:35.171860"], ["updated_at", "2015-10-30 14:41:35.171860"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.174524"], ["updated_at", "2015-10-30 14:41:35.174524"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.176020"], ["updated_at", "2015-10-30 14:41:35.176020"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.178028"], ["updated_at", "2015-10-30 14:41:35.178028"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms Sent mail to user9@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5633819f2c832_7d123fecc14601d4516e7@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:41:35.188664"], ["updated_at", "2015-10-30 14:41:35.188664"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:41:35.192041"], ["updated_at", "2015-10-30 14:41:35.192041"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.195986"], ["updated_at", "2015-10-30 14:41:35.195986"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.197706"], ["updated_at", "2015-10-30 14:41:35.197706"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.199172"], ["updated_at", "2015-10-30 14:41:35.199172"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5633819f315e5_7d123fecc14601d451784@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.210400"], ["updated_at", "2015-10-30 14:41:35.210400"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:41:35.216665"], ["updated_at", "2015-10-30 14:41:35.216665"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.219924"], ["updated_at", "2015-10-30 14:41:35.219924"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.222380"], ["updated_at", "2015-10-30 14:41:35.222380"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.224232"], ["updated_at", "2015-10-30 14:41:35.224232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ?[0m [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "messages" WHERE "messages"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.234704"], ["updated_at", "2015-10-30 14:41:35.234704"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:41:35.236516"], ["updated_at", "2015-10-30 14:41:35.236516"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.239096"], ["updated_at", "2015-10-30 14:41:35.239096"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.242443"], ["updated_at", "2015-10-30 14:41:35.242443"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:41:35.245770"], ["updated_at", "2015-10-30 14:41:35.245770"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.248905"], ["updated_at", "2015-10-30 14:41:35.248905"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.250802"], ["updated_at", "2015-10-30 14:41:35.250802"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.253039"], ["updated_at", "2015-10-30 14:41:35.253039"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.263382"], ["updated_at", "2015-10-30 14:41:35.263382"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:41:35.266245"], ["updated_at", "2015-10-30 14:41:35.266245"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.268962"], ["updated_at", "2015-10-30 14:41:35.268962"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.271564"], ["updated_at", "2015-10-30 14:41:35.271564"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:41:35.273513"], ["updated_at", "2015-10-30 14:41:35.273513"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.276828"], ["updated_at", "2015-10-30 14:41:35.276828"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.278575"], ["updated_at", "2015-10-30 14:41:35.278575"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.280542"], ["updated_at", "2015-10-30 14:41:35.280542"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.284245"], ["updated_at", "2015-10-30 14:41:35.284245"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:41:35.285906"], ["updated_at", "2015-10-30 14:41:35.285906"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.288148"], ["updated_at", "2015-10-30 14:41:35.288148"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.290839"], ["updated_at", "2015-10-30 14:41:35.290839"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.297952"], ["updated_at", "2015-10-30 14:41:35.297952"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:41:35.299716"], ["updated_at", "2015-10-30 14:41:35.299716"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.302636"], ["updated_at", "2015-10-30 14:41:35.302636"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.305264"], ["updated_at", "2015-10-30 14:41:35.305264"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.316397"], ["updated_at", "2015-10-30 14:41:35.316397"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:41:35.319849"], ["updated_at", "2015-10-30 14:41:35.319849"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.323237"], ["updated_at", "2015-10-30 14:41:35.323237"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.326038"], ["updated_at", "2015-10-30 14:41:35.326038"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:41:35.327651"], ["updated_at", "2015-10-30 14:41:35.327651"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.330007"], ["updated_at", "2015-10-30 14:41:35.330007"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.331622"], ["updated_at", "2015-10-30 14:41:35.331622"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.333422"], ["updated_at", "2015-10-30 14:41:35.333422"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.338276"], ["updated_at", "2015-10-30 14:41:35.338276"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:41:35.340009"], ["updated_at", "2015-10-30 14:41:35.340009"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.342557"], ["updated_at", "2015-10-30 14:41:35.342557"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.348215"], ["updated_at", "2015-10-30 14:41:35.348215"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:41:35.350860"], ["updated_at", "2015-10-30 14:41:35.350860"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.354416"], ["updated_at", "2015-10-30 14:41:35.354416"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:41:35.356158"], ["updated_at", "2015-10-30 14:41:35.356158"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.362882"], ["updated_at", "2015-10-30 14:41:35.362882"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:41:35.370462"], ["updated_at", "2015-10-30 14:41:35.370462"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.373580"], ["updated_at", "2015-10-30 14:41:35.373580"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.376792"], ["updated_at", "2015-10-30 14:41:35.376792"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:41:35.382288"], ["updated_at", "2015-10-30 14:41:35.382288"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.385702"], ["updated_at", "2015-10-30 14:41:35.385702"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.388209"], ["updated_at", "2015-10-30 14:41:35.388209"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:41:35.392875"], ["updated_at", "2015-10-30 14:41:35.392875"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.395605"], ["updated_at", "2015-10-30 14:41:35.395605"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.398255"], ["updated_at", "2015-10-30 14:41:35.398255"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:41:35.405747"], ["updated_at", "2015-10-30 14:41:35.405747"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.409366"], ["updated_at", "2015-10-30 14:41:35.409366"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.413454"], ["updated_at", "2015-10-30 14:41:35.413454"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:41:35.416761"], ["updated_at", "2015-10-30 14:41:35.416761"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.419691"], ["updated_at", "2015-10-30 14:41:35.419691"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.431392"], ["updated_at", "2015-10-30 14:41:35.431392"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.436564"], ["updated_at", "2015-10-30 14:41:35.436564"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.440558"], ["updated_at", "2015-10-30 14:41:35.440558"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:41:35.442473"], ["updated_at", "2015-10-30 14:41:35.442473"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.445367"], ["updated_at", "2015-10-30 14:41:35.445367"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:41:35.446900"], ["updated_at", "2015-10-30 14:41:35.446900"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.449250"], ["updated_at", "2015-10-30 14:41:35.449250"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:41:35.450715"], ["updated_at", "2015-10-30 14:41:35.450715"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.453042"], ["updated_at", "2015-10-30 14:41:35.453042"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:41:35.454562"], ["updated_at", "2015-10-30 14:41:35.454562"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.456792"], ["updated_at", "2015-10-30 14:41:35.456792"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 1], ["updated_at", "2015-10-30 14:41:35.465013"], ["id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 2], ["updated_at", "2015-10-30 14:41:35.469924"], ["id", 3]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 3], ["updated_at", "2015-10-30 14:41:35.481634"], ["id", 4]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.489036"], ["updated_at", "2015-10-30 14:41:35.489036"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 12.5ms Sent mail to user27@sleede.com (3.1ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633819f7b4e1_7d123fecc14601d451860@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:41:35.510165"], ["updated_at", "2015-10-30 14:41:35.510165"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:41:35.513403"], ["updated_at", "2015-10-30 14:41:35.513403"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.517008"], ["updated_at", "2015-10-30 14:41:35.517008"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633819f7f190_7d123fecc14601d4519d7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.525839"], ["updated_at", "2015-10-30 14:41:35.525839"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633819f81612_7d123fecc14601d4520ca@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:41:35.531429"], ["updated_at", "2015-10-30 14:41:35.531429"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:41:35.532853"], ["updated_at", "2015-10-30 14:41:35.532853"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.534169"], ["updated_at", "2015-10-30 14:41:35.534169"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633819f83157_7d123fecc14601d4521d0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.540961"], ["updated_at", "2015-10-30 14:41:35.540961"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633819f84c76_7d123fecc14601d4522a2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:41:35.545243"], ["updated_at", "2015-10-30 14:41:35.545243"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:41:35.546560"], ["updated_at", "2015-10-30 14:41:35.546560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.547727"], ["updated_at", "2015-10-30 14:41:35.547727"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:41:35 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633819f8654c_7d123fecc14601d4523c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:41:35.561377"], ["updated_at", "2015-10-30 14:41:35.561377"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:41:35.563962"], ["updated_at", "2015-10-30 14:41:35.563962"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.566409"], ["updated_at", "2015-10-30 14:41:35.566409"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.568700"], ["updated_at", "2015-10-30 14:41:35.568700"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:41:35.570159"], ["updated_at", "2015-10-30 14:41:35.570159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.0ms)[0m DELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:41:35.577199"], ["updated_at", "2015-10-30 14:41:35.577199"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:41:35.579367"], ["updated_at", "2015-10-30 14:41:35.579367"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:41:35.582126"], ["updated_at", "2015-10-30 14:41:35.582126"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::Notification Load (0.0ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.0ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (3.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.5ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (4.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:41:35.597149"], ["updated_at", "2015-10-30 14:41:35.597149"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:41:35.606594"], ["updated_at", "2015-10-30 14:41:35.606594"]] [1m[35m (0.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:41:35.617165"], ["updated_at", "2015-10-30 14:41:35.617165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:42:48.959142"], ["updated_at", "2015-10-30 14:42:48.959142"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:48.975516"], ["updated_at", "2015-10-30 14:42:48.975516"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:48.995149"], ["updated_at", "2015-10-30 14:42:48.995149"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.015521"], ["updated_at", "2015-10-30 14:42:49.015521"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.019206"], ["updated_at", "2015-10-30 14:42:49.019206"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.4ms) Completed 200 OK in 19ms (Views: 11.9ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:42:49.056312"], ["updated_at", "2015-10-30 14:42:49.056312"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.058587"], ["updated_at", "2015-10-30 14:42:49.058587"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.061397"], ["updated_at", "2015-10-30 14:42:49.061397"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.064390"], ["updated_at", "2015-10-30 14:42:49.064390"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.066184"], ["updated_at", "2015-10-30 14:42:49.066184"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered wupee/api/notifications/index.json.jbuilder (12.7ms) Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:42:49.097646"], ["updated_at", "2015-10-30 14:42:49.097646"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.100773"], ["updated_at", "2015-10-30 14:42:49.100773"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.103200"], ["updated_at", "2015-10-30 14:42:49.103200"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.8ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.105527"], ["updated_at", "2015-10-30 14:42:49.105527"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.114671"], ["updated_at", "2015-10-30 14:42:49.114671"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:42:49.131089"], ["updated_at", "2015-10-30 14:42:49.131089"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.133345"], ["updated_at", "2015-10-30 14:42:49.133345"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.135818"], ["updated_at", "2015-10-30 14:42:49.135818"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.138271"], ["updated_at", "2015-10-30 14:42:49.138271"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.140135"], ["updated_at", "2015-10-30 14:42:49.140135"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/show.json.jbuilder (2.2ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:42:49.152299"], ["updated_at", "2015-10-30 14:42:49.152299"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.154460"], ["updated_at", "2015-10-30 14:42:49.154460"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.156796"], ["updated_at", "2015-10-30 14:42:49.156796"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.159335"], ["updated_at", "2015-10-30 14:42:49.159335"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.162180"], ["updated_at", "2015-10-30 14:42:49.162180"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:42:49.337823"], ["updated_at", "2015-10-30 14:42:49.337823"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:42:49.340011"], ["updated_at", "2015-10-30 14:42:49.340011"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.343335"], ["updated_at", "2015-10-30 14:42:49.343335"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.345672"], ["updated_at", "2015-10-30 14:42:49.345672"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.347463"], ["updated_at", "2015-10-30 14:42:49.347463"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:42:49.353658"], ["updated_at", "2015-10-30 14:42:49.353658"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:42:49.355832"], ["updated_at", "2015-10-30 14:42:49.355832"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.358592"], ["updated_at", "2015-10-30 14:42:49.358592"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.360102"], ["updated_at", "2015-10-30 14:42:49.360102"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.362118"], ["updated_at", "2015-10-30 14:42:49.362118"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 17.3ms Sent mail to user7@sleede.com (7.1ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563381e95e1d9_7d233fe2ed0601d44443c@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:42:49.393575"], ["updated_at", "2015-10-30 14:42:49.393575"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:42:49.396320"], ["updated_at", "2015-10-30 14:42:49.396320"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.399431"], ["updated_at", "2015-10-30 14:42:49.399431"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.401124"], ["updated_at", "2015-10-30 14:42:49.401124"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.402638"], ["updated_at", "2015-10-30 14:42:49.402638"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563381e9630c8_7d233fe2ed0601d444529@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:42:49.418076"], ["updated_at", "2015-10-30 14:42:49.418076"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:42:49.420937"], ["updated_at", "2015-10-30 14:42:49.420937"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.423714"], ["updated_at", "2015-10-30 14:42:49.423714"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.425182"], ["updated_at", "2015-10-30 14:42:49.425182"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.426644"], ["updated_at", "2015-10-30 14:42:49.426644"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.3ms Sent mail to user9@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563381e969581_7d233fe2ed0601d44469c@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:42:49.436136"], ["updated_at", "2015-10-30 14:42:49.436136"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:42:49.438481"], ["updated_at", "2015-10-30 14:42:49.438481"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.441363"], ["updated_at", "2015-10-30 14:42:49.441363"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.442814"], ["updated_at", "2015-10-30 14:42:49.442814"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.444767"], ["updated_at", "2015-10-30 14:42:49.444767"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.1ms Sent mail to user10@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563381e96df67_7d233fe2ed0601d4447c0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.454346"], ["updated_at", "2015-10-30 14:42:49.454346"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:42:49.456482"], ["updated_at", "2015-10-30 14:42:49.456482"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.463094"], ["updated_at", "2015-10-30 14:42:49.463094"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.470396"], ["updated_at", "2015-10-30 14:42:49.470396"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.472389"], ["updated_at", "2015-10-30 14:42:49.472389"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.482955"], ["updated_at", "2015-10-30 14:42:49.482955"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:42:49.484780"], ["updated_at", "2015-10-30 14:42:49.484780"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.487218"], ["updated_at", "2015-10-30 14:42:49.487218"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.489669"], ["updated_at", "2015-10-30 14:42:49.489669"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:42:49.491593"], ["updated_at", "2015-10-30 14:42:49.491593"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.497987"], ["updated_at", "2015-10-30 14:42:49.497987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.500325"], ["updated_at", "2015-10-30 14:42:49.500325"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.502660"], ["updated_at", "2015-10-30 14:42:49.502660"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.507011"], ["updated_at", "2015-10-30 14:42:49.507011"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:42:49.509096"], ["updated_at", "2015-10-30 14:42:49.509096"]] [1m[35m (0.5ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.520675"], ["updated_at", "2015-10-30 14:42:49.520675"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.523234"], ["updated_at", "2015-10-30 14:42:49.523234"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:42:49.524679"], ["updated_at", "2015-10-30 14:42:49.524679"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.529176"], ["updated_at", "2015-10-30 14:42:49.529176"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.530761"], ["updated_at", "2015-10-30 14:42:49.530761"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.532561"], ["updated_at", "2015-10-30 14:42:49.532561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.536073"], ["updated_at", "2015-10-30 14:42:49.536073"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:42:49.537813"], ["updated_at", "2015-10-30 14:42:49.537813"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.540177"], ["updated_at", "2015-10-30 14:42:49.540177"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.542567"], ["updated_at", "2015-10-30 14:42:49.542567"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.551456"], ["updated_at", "2015-10-30 14:42:49.551456"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:42:49.553401"], ["updated_at", "2015-10-30 14:42:49.553401"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.556174"], ["updated_at", "2015-10-30 14:42:49.556174"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.559696"], ["updated_at", "2015-10-30 14:42:49.559696"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.571047"], ["updated_at", "2015-10-30 14:42:49.571047"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:42:49.573078"], ["updated_at", "2015-10-30 14:42:49.573078"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.575466"], ["updated_at", "2015-10-30 14:42:49.575466"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.579748"], ["updated_at", "2015-10-30 14:42:49.579748"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:42:49.581857"], ["updated_at", "2015-10-30 14:42:49.581857"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.584139"], ["updated_at", "2015-10-30 14:42:49.584139"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.585486"], ["updated_at", "2015-10-30 14:42:49.585486"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.587260"], ["updated_at", "2015-10-30 14:42:49.587260"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.591273"], ["updated_at", "2015-10-30 14:42:49.591273"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:42:49.593747"], ["updated_at", "2015-10-30 14:42:49.593747"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.596013"], ["updated_at", "2015-10-30 14:42:49.596013"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.600551"], ["updated_at", "2015-10-30 14:42:49.600551"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:42:49.602582"], ["updated_at", "2015-10-30 14:42:49.602582"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.605596"], ["updated_at", "2015-10-30 14:42:49.605596"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:42:49.607421"], ["updated_at", "2015-10-30 14:42:49.607421"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.611011"], ["updated_at", "2015-10-30 14:42:49.611011"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:42:49.622006"], ["updated_at", "2015-10-30 14:42:49.622006"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.624740"], ["updated_at", "2015-10-30 14:42:49.624740"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.628273"], ["updated_at", "2015-10-30 14:42:49.628273"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:42:49.633755"], ["updated_at", "2015-10-30 14:42:49.633755"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.636506"], ["updated_at", "2015-10-30 14:42:49.636506"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.639206"], ["updated_at", "2015-10-30 14:42:49.639206"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:42:49.645106"], ["updated_at", "2015-10-30 14:42:49.645106"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.648194"], ["updated_at", "2015-10-30 14:42:49.648194"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.650932"], ["updated_at", "2015-10-30 14:42:49.650932"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.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.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:42:49.658626"], ["updated_at", "2015-10-30 14:42:49.658626"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.663053"], ["updated_at", "2015-10-30 14:42:49.663053"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.666224"], ["updated_at", "2015-10-30 14:42:49.666224"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:42:49.670346"], ["updated_at", "2015-10-30 14:42:49.670346"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.673418"], ["updated_at", "2015-10-30 14:42:49.673418"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.685370"], ["updated_at", "2015-10-30 14:42:49.685370"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.689576"], ["updated_at", "2015-10-30 14:42:49.689576"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.694102"], ["updated_at", "2015-10-30 14:42:49.694102"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:42:49.695782"], ["updated_at", "2015-10-30 14:42:49.695782"]] [1m[35m (0.0ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.698424"], ["updated_at", "2015-10-30 14:42:49.698424"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:42:49.699867"], ["updated_at", "2015-10-30 14:42:49.699867"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.702023"], ["updated_at", "2015-10-30 14:42:49.702023"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:42:49.703307"], ["updated_at", "2015-10-30 14:42:49.703307"]] [1m[35m (0.0ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.705233"], ["updated_at", "2015-10-30 14:42:49.705233"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:42:49.706429"], ["updated_at", "2015-10-30 14:42:49.706429"]] [1m[36m (0.0ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.709248"], ["updated_at", "2015-10-30 14:42:49.709248"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 14:42:49.717507"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:42:49.729272"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 14:42:49.736299"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.743422"], ["updated_at", "2015-10-30 14:42:49.743422"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 10.4ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563381e9b8d66_7d233fe2ed0601d44485@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:42:49.759053"], ["updated_at", "2015-10-30 14:42:49.759053"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:42:49.760870"], ["updated_at", "2015-10-30 14:42:49.760870"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.762099"], ["updated_at", "2015-10-30 14:42:49.762099"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563381e9bacba_7d233fe2ed0601d44490@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.768710"], ["updated_at", "2015-10-30 14:42:49.768710"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563381e9bc58a_7d233fe2ed0601d4450f2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:42:49.772804"], ["updated_at", "2015-10-30 14:42:49.772804"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:42:49.774115"], ["updated_at", "2015-10-30 14:42:49.774115"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.775350"], ["updated_at", "2015-10-30 14:42:49.775350"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 2.2ms Sent mail to user30@sleede.com (2.5ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563381e9be531_7d233fe2ed0601d4451c0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.783916"], ["updated_at", "2015-10-30 14:42:49.783916"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563381e9c00d8_7d233fe2ed0601d445291@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:42:49.788019"], ["updated_at", "2015-10-30 14:42:49.788019"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:42:49.789319"], ["updated_at", "2015-10-30 14:42:49.789319"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.790583"], ["updated_at", "2015-10-30 14:42:49.790583"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:42:49 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563381e9c19f3_7d233fe2ed0601d4453f5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:42:49.802336"], ["updated_at", "2015-10-30 14:42:49.802336"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:42:49.804713"], ["updated_at", "2015-10-30 14:42:49.804713"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.807403"], ["updated_at", "2015-10-30 14:42:49.807403"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.811176"], ["updated_at", "2015-10-30 14:42:49.811176"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:42:49.813906"], ["updated_at", "2015-10-30 14:42:49.813906"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:42:49.821220"], ["updated_at", "2015-10-30 14:42:49.821220"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:42:49.823497"], ["updated_at", "2015-10-30 14:42:49.823497"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:42:49.825977"], ["updated_at", "2015-10-30 14:42:49.825977"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:42:49.838275"], ["updated_at", "2015-10-30 14:42:49.838275"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:42:49.842472"], ["updated_at", "2015-10-30 14:42:49.842472"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:42:49.853151"], ["updated_at", "2015-10-30 14:42:49.853151"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:43:04.442247"], ["updated_at", "2015-10-30 14:43:04.442247"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.467665"], ["updated_at", "2015-10-30 14:43:04.467665"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:04.484376"], ["updated_at", "2015-10-30 14:43:04.484376"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:04.496403"], ["updated_at", "2015-10-30 14:43:04.496403"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.500013"], ["updated_at", "2015-10-30 14:43:04.500013"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 25ms (Views: 12.0ms | ActiveRecord: 0.0ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:43:04.547210"], ["updated_at", "2015-10-30 14:43:04.547210"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:04.549991"], ["updated_at", "2015-10-30 14:43:04.549991"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:04.552376"], ["updated_at", "2015-10-30 14:43:04.552376"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:04.555053"], ["updated_at", "2015-10-30 14:43:04.555053"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.556727"], ["updated_at", "2015-10-30 14:43:04.556727"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/index.json.jbuilder (10.2ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:43:04.586332"], ["updated_at", "2015-10-30 14:43:04.586332"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:04.589506"], ["updated_at", "2015-10-30 14:43:04.589506"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:04.595794"], ["updated_at", "2015-10-30 14:43:04.595794"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:04.605039"], ["updated_at", "2015-10-30 14:43:04.605039"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.608843"], ["updated_at", "2015-10-30 14:43:04.608843"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/show.json.jbuilder (4.4ms) Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.4ms) [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:43:04.632437"], ["updated_at", "2015-10-30 14:43:04.632437"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:04.636559"], ["updated_at", "2015-10-30 14:43:04.636559"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:04.641136"], ["updated_at", "2015-10-30 14:43:04.641136"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:04.647298"], ["updated_at", "2015-10-30 14:43:04.647298"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.650866"], ["updated_at", "2015-10-30 14:43:04.650866"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.2ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered wupee/api/notifications/show.json.jbuilder (8.3ms) Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 0.6ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:43:04.676453"], ["updated_at", "2015-10-30 14:43:04.676453"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.680512"], ["updated_at", "2015-10-30 14:43:04.680512"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:04.684781"], ["updated_at", "2015-10-30 14:43:04.684781"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.8ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:04.698740"], ["updated_at", "2015-10-30 14:43:04.698740"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.703185"], ["updated_at", "2015-10-30 14:43:04.703185"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.4ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.4ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:43:04.903152"], ["updated_at", "2015-10-30 14:43:04.903152"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:43:04.905315"], ["updated_at", "2015-10-30 14:43:04.905315"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:04.908256"], ["updated_at", "2015-10-30 14:43:04.908256"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.909969"], ["updated_at", "2015-10-30 14:43:04.909969"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.911708"], ["updated_at", "2015-10-30 14:43:04.911708"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:43:04.917417"], ["updated_at", "2015-10-30 14:43:04.917417"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:43:04.919506"], ["updated_at", "2015-10-30 14:43:04.919506"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:04.922018"], ["updated_at", "2015-10-30 14:43:04.922018"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.923384"], ["updated_at", "2015-10-30 14:43:04.923384"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.924648"], ["updated_at", "2015-10-30 14:43:04.924648"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 16.7ms Sent mail to user7@sleede.com (6.9ms) Date: Fri, 30 Oct 2015 15:43:04 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563381f8e74f1_7d283fedadc601d0374b7@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:43:04.954836"], ["updated_at", "2015-10-30 14:43:04.954836"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:43:04.957300"], ["updated_at", "2015-10-30 14:43:04.957300"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:04.960031"], ["updated_at", "2015-10-30 14:43:04.960031"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:04.961563"], ["updated_at", "2015-10-30 14:43:04.961563"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.963829"], ["updated_at", "2015-10-30 14:43:04.963829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:43:04 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563381f8ec205_7d283fedadc601d03755c@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:43:04.977728"], ["updated_at", "2015-10-30 14:43:04.977728"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:43:04.982271"], ["updated_at", "2015-10-30 14:43:04.982271"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:04.985596"], ["updated_at", "2015-10-30 14:43:04.985596"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:04.987228"], ["updated_at", "2015-10-30 14:43:04.987228"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:04.988647"], ["updated_at", "2015-10-30 14:43:04.988647"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.7ms) Date: Fri, 30 Oct 2015 15:43:04 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563381f8f2314_7d283fedadc601d03765f@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:43:04.996520"], ["updated_at", "2015-10-30 14:43:04.996520"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:43:04.998697"], ["updated_at", "2015-10-30 14:43:04.998697"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.001318"], ["updated_at", "2015-10-30 14:43:05.001318"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:05.002747"], ["updated_at", "2015-10-30 14:43:05.002747"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.004332"], ["updated_at", "2015-10-30 14:43:05.004332"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (4.2ms) Date: Fri, 30 Oct 2015 15:43:05 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563381f920f9_7d283fedadc601d037710@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [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 (2.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.015011"], ["updated_at", "2015-10-30 14:43:05.015011"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:43:05.019745"], ["updated_at", "2015-10-30 14:43:05.019745"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.027360"], ["updated_at", "2015-10-30 14:43:05.027360"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.036574"], ["updated_at", "2015-10-30 14:43:05.036574"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.039465"], ["updated_at", "2015-10-30 14:43:05.039465"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.050389"], ["updated_at", "2015-10-30 14:43:05.050389"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:43:05.052095"], ["updated_at", "2015-10-30 14:43:05.052095"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.054472"], ["updated_at", "2015-10-30 14:43:05.054472"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.056897"], ["updated_at", "2015-10-30 14:43:05.056897"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:43:05.058799"], ["updated_at", "2015-10-30 14:43:05.058799"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.064702"], ["updated_at", "2015-10-30 14:43:05.064702"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.067591"], ["updated_at", "2015-10-30 14:43:05.067591"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.070862"], ["updated_at", "2015-10-30 14:43:05.070862"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (24.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.100905"], ["updated_at", "2015-10-30 14:43:05.100905"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:43:05.104229"], ["updated_at", "2015-10-30 14:43:05.104229"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.106634"], ["updated_at", "2015-10-30 14:43:05.106634"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.110718"], ["updated_at", "2015-10-30 14:43:05.110718"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:43:05.113753"], ["updated_at", "2015-10-30 14:43:05.113753"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.117294"], ["updated_at", "2015-10-30 14:43:05.117294"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.118879"], ["updated_at", "2015-10-30 14:43:05.118879"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.121803"], ["updated_at", "2015-10-30 14:43:05.121803"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.126586"], ["updated_at", "2015-10-30 14:43:05.126586"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:43:05.128498"], ["updated_at", "2015-10-30 14:43:05.128498"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.130948"], ["updated_at", "2015-10-30 14:43:05.130948"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.136344"], ["updated_at", "2015-10-30 14:43:05.136344"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:05.146278"], ["updated_at", "2015-10-30 14:43:05.146278"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:43:05.148692"], ["updated_at", "2015-10-30 14:43:05.148692"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.151583"], ["updated_at", "2015-10-30 14:43:05.151583"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.163696"], ["updated_at", "2015-10-30 14:43:05.163696"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.169356"], ["updated_at", "2015-10-30 14:43:05.169356"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:43:05.172693"], ["updated_at", "2015-10-30 14:43:05.172693"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.176408"], ["updated_at", "2015-10-30 14:43:05.176408"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.181343"], ["updated_at", "2015-10-30 14:43:05.181343"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:43:05.183519"], ["updated_at", "2015-10-30 14:43:05.183519"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.187132"], ["updated_at", "2015-10-30 14:43:05.187132"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.188708"], ["updated_at", "2015-10-30 14:43:05.188708"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.193936"], ["updated_at", "2015-10-30 14:43:05.193936"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:05.202108"], ["updated_at", "2015-10-30 14:43:05.202108"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:43:05.204687"], ["updated_at", "2015-10-30 14:43:05.204687"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (2.9ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.223639"], ["updated_at", "2015-10-30 14:43:05.223639"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.231102"], ["updated_at", "2015-10-30 14:43:05.231102"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:43:05.232740"], ["updated_at", "2015-10-30 14:43:05.232740"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.234893"], ["updated_at", "2015-10-30 14:43:05.234893"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:43:05.236211"], ["updated_at", "2015-10-30 14:43:05.236211"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.240064"], ["updated_at", "2015-10-30 14:43:05.240064"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:43:05.245269"], ["updated_at", "2015-10-30 14:43:05.245269"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.249160"], ["updated_at", "2015-10-30 14:43:05.249160"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.251687"], ["updated_at", "2015-10-30 14:43:05.251687"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (1.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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:43:05.264088"], ["updated_at", "2015-10-30 14:43:05.264088"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.266861"], ["updated_at", "2015-10-30 14:43:05.266861"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.269583"], ["updated_at", "2015-10-30 14:43:05.269583"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:43:05.274273"], ["updated_at", "2015-10-30 14:43:05.274273"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.276723"], ["updated_at", "2015-10-30 14:43:05.276723"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.280602"], ["updated_at", "2015-10-30 14:43:05.280602"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:43:05.288135"], ["updated_at", "2015-10-30 14:43:05.288135"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.292966"], ["updated_at", "2015-10-30 14:43:05.292966"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.298933"], ["updated_at", "2015-10-30 14:43:05.298933"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:43:05.302202"], ["updated_at", "2015-10-30 14:43:05.302202"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.309249"], ["updated_at", "2015-10-30 14:43:05.309249"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.317029"], ["updated_at", "2015-10-30 14:43:05.317029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.321197"], ["updated_at", "2015-10-30 14:43:05.321197"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.325662"], ["updated_at", "2015-10-30 14:43:05.325662"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:43:05.327928"], ["updated_at", "2015-10-30 14:43:05.327928"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.330943"], ["updated_at", "2015-10-30 14:43:05.330943"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:43:05.332476"], ["updated_at", "2015-10-30 14:43:05.332476"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.335101"], ["updated_at", "2015-10-30 14:43:05.335101"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:43:05.336972"], ["updated_at", "2015-10-30 14:43:05.336972"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (3.8ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.344037"], ["updated_at", "2015-10-30 14:43:05.344037"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:43:05.346763"], ["updated_at", "2015-10-30 14:43:05.346763"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.350427"], ["updated_at", "2015-10-30 14:43:05.350427"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 14:43:05.359156"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:43:05.366091"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 14:43:05.369304"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.375965"], ["updated_at", "2015-10-30 14:43:05.375965"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 11.4ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:43:05 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563381f95f0e3_7d283fedadc601d037852@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:43:05.391014"], ["updated_at", "2015-10-30 14:43:05.391014"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:43:05.393104"], ["updated_at", "2015-10-30 14:43:05.393104"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.394968"], ["updated_at", "2015-10-30 14:43:05.394968"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:43:05 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563381f961199_7d283fedadc601d0379cd@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.401392"], ["updated_at", "2015-10-30 14:43:05.401392"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:43:05 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563381f962a80_7d283fedadc601d038029@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:43:05.405441"], ["updated_at", "2015-10-30 14:43:05.405441"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:43:05.406772"], ["updated_at", "2015-10-30 14:43:05.406772"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.408058"], ["updated_at", "2015-10-30 14:43:05.408058"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user30@sleede.com (2.3ms) Date: Fri, 30 Oct 2015 15:43:05 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563381f9647ea_7d283fedadc601d0381bd@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.416754"], ["updated_at", "2015-10-30 14:43:05.416754"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:43:05 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563381f9666fe_7d283fedadc601d0382a9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:43:05.420982"], ["updated_at", "2015-10-30 14:43:05.420982"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:43:05.422354"], ["updated_at", "2015-10-30 14:43:05.422354"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.423650"], ["updated_at", "2015-10-30 14:43:05.423650"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:43:05 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563381f9680e3_7d283fedadc601d038327@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:43:05.435117"], ["updated_at", "2015-10-30 14:43:05.435117"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:43:05.437537"], ["updated_at", "2015-10-30 14:43:05.437537"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.440293"], ["updated_at", "2015-10-30 14:43:05.440293"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.442753"], ["updated_at", "2015-10-30 14:43:05.442753"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:43:05.444557"], ["updated_at", "2015-10-30 14:43:05.444557"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:43:05.453770"], ["updated_at", "2015-10-30 14:43:05.453770"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:43:05.456061"], ["updated_at", "2015-10-30 14:43:05.456061"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:43:05.458677"], ["updated_at", "2015-10-30 14:43:05.458677"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:43:05.471335"], ["updated_at", "2015-10-30 14:43:05.471335"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:43:05.476548"], ["updated_at", "2015-10-30 14:43:05.476548"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:43:05.486096"], ["updated_at", "2015-10-30 14:43:05.486096"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:45:08.645575"], ["updated_at", "2015-10-30 14:45:08.645575"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:08.662025"], ["updated_at", "2015-10-30 14:45:08.662025"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:08.683091"], ["updated_at", "2015-10-30 14:45:08.683091"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:08.701850"], ["updated_at", "2015-10-30 14:45:08.701850"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:08.705580"], ["updated_at", "2015-10-30 14:45:08.705580"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 11.0ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:45:08.741993"], ["updated_at", "2015-10-30 14:45:08.741993"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:08.744336"], ["updated_at", "2015-10-30 14:45:08.744336"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:08.746726"], ["updated_at", "2015-10-30 14:45:08.746726"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:08.749677"], ["updated_at", "2015-10-30 14:45:08.749677"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:08.751863"], ["updated_at", "2015-10-30 14:45:08.751863"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/index.json.jbuilder (10.1ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:45:08.779077"], ["updated_at", "2015-10-30 14:45:08.779077"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:08.782780"], ["updated_at", "2015-10-30 14:45:08.782780"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:08.787749"], ["updated_at", "2015-10-30 14:45:08.787749"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:08.791707"], ["updated_at", "2015-10-30 14:45:08.791707"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:08.793516"], ["updated_at", "2015-10-30 14:45:08.793516"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/show.json.jbuilder (2.7ms) Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 0.3ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:45:08.815525"], ["updated_at", "2015-10-30 14:45:08.815525"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:08.817997"], ["updated_at", "2015-10-30 14:45:08.817997"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:08.820490"], ["updated_at", "2015-10-30 14:45:08.820490"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:08.823019"], ["updated_at", "2015-10-30 14:45:08.823019"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:08.824916"], ["updated_at", "2015-10-30 14:45:08.824916"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/show.json.jbuilder (1.6ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:45:08.835561"], ["updated_at", "2015-10-30 14:45:08.835561"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:08.837817"], ["updated_at", "2015-10-30 14:45:08.837817"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:08.840384"], ["updated_at", "2015-10-30 14:45:08.840384"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:08.842821"], ["updated_at", "2015-10-30 14:45:08.842821"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:08.844659"], ["updated_at", "2015-10-30 14:45:08.844659"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 4ms (ActiveRecord: 0.3ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:45:09.058175"], ["updated_at", "2015-10-30 14:45:09.058175"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:45:09.061153"], ["updated_at", "2015-10-30 14:45:09.061153"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.067086"], ["updated_at", "2015-10-30 14:45:09.067086"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.070614"], ["updated_at", "2015-10-30 14:45:09.070614"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.073281"], ["updated_at", "2015-10-30 14:45:09.073281"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:45:09.082658"], ["updated_at", "2015-10-30 14:45:09.082658"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:45:09.086425"], ["updated_at", "2015-10-30 14:45:09.086425"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.090940"], ["updated_at", "2015-10-30 14:45:09.090940"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.093408"], ["updated_at", "2015-10-30 14:45:09.093408"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.096135"], ["updated_at", "2015-10-30 14:45:09.096135"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 25.6ms Sent mail to user7@sleede.com (16.2ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5633827521214_7d443ff019c5e1dc485bb@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:45:09.147924"], ["updated_at", "2015-10-30 14:45:09.147924"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:45:09.152719"], ["updated_at", "2015-10-30 14:45:09.152719"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.157546"], ["updated_at", "2015-10-30 14:45:09.157546"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:09.160498"], ["updated_at", "2015-10-30 14:45:09.160498"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.163174"], ["updated_at", "2015-10-30 14:45:09.163174"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.1ms Sent mail to user8@sleede.com (2.4ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56338275293a0_7d443ff019c5e1dc486fb@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:45:09.174312"], ["updated_at", "2015-10-30 14:45:09.174312"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:45:09.177155"], ["updated_at", "2015-10-30 14:45:09.177155"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.182217"], ["updated_at", "2015-10-30 14:45:09.182217"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.186679"], ["updated_at", "2015-10-30 14:45:09.186679"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.190619"], ["updated_at", "2015-10-30 14:45:09.190619"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms Sent mail to user9@sleede.com (2.7ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563382752f891_7d443ff019c5e1dc48756@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (3.0ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:45:09.207793"], ["updated_at", "2015-10-30 14:45:09.207793"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:45:09.211111"], ["updated_at", "2015-10-30 14:45:09.211111"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.215417"], ["updated_at", "2015-10-30 14:45:09.215417"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:09.219162"], ["updated_at", "2015-10-30 14:45:09.219162"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.220974"], ["updated_at", "2015-10-30 14:45:09.220974"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user10@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5633827536f9d_7d443ff019c5e1dc4885f@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.230594"], ["updated_at", "2015-10-30 14:45:09.230594"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:45:09.232732"], ["updated_at", "2015-10-30 14:45:09.232732"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.239219"], ["updated_at", "2015-10-30 14:45:09.239219"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.244642"], ["updated_at", "2015-10-30 14:45:09.244642"]] [1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.258053"], ["updated_at", "2015-10-30 14:45:09.258053"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.270673"], ["updated_at", "2015-10-30 14:45:09.270673"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:45:09.273272"], ["updated_at", "2015-10-30 14:45:09.273272"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.275592"], ["updated_at", "2015-10-30 14:45:09.275592"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.279142"], ["updated_at", "2015-10-30 14:45:09.279142"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:45:09.280745"], ["updated_at", "2015-10-30 14:45:09.280745"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.285466"], ["updated_at", "2015-10-30 14:45:09.285466"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.287276"], ["updated_at", "2015-10-30 14:45:09.287276"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.289113"], ["updated_at", "2015-10-30 14:45:09.289113"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.293518"], ["updated_at", "2015-10-30 14:45:09.293518"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:45:09.295091"], ["updated_at", "2015-10-30 14:45:09.295091"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.297737"], ["updated_at", "2015-10-30 14:45:09.297737"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.300164"], ["updated_at", "2015-10-30 14:45:09.300164"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:45:09.301837"], ["updated_at", "2015-10-30 14:45:09.301837"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.306948"], ["updated_at", "2015-10-30 14:45:09.306948"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.309619"], ["updated_at", "2015-10-30 14:45:09.309619"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.312442"], ["updated_at", "2015-10-30 14:45:09.312442"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.325268"], ["updated_at", "2015-10-30 14:45:09.325268"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:45:09.327440"], ["updated_at", "2015-10-30 14:45:09.327440"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.331339"], ["updated_at", "2015-10-30 14:45:09.331339"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.333857"], ["updated_at", "2015-10-30 14:45:09.333857"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:09.340013"], ["updated_at", "2015-10-30 14:45:09.340013"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:45:09.342023"], ["updated_at", "2015-10-30 14:45:09.342023"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.344381"], ["updated_at", "2015-10-30 14:45:09.344381"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.346694"], ["updated_at", "2015-10-30 14:45:09.346694"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.352456"], ["updated_at", "2015-10-30 14:45:09.352456"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:45:09.354038"], ["updated_at", "2015-10-30 14:45:09.354038"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.357398"], ["updated_at", "2015-10-30 14:45:09.357398"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.360969"], ["updated_at", "2015-10-30 14:45:09.360969"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:45:09.363867"], ["updated_at", "2015-10-30 14:45:09.363867"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.369628"], ["updated_at", "2015-10-30 14:45:09.369628"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.372647"], ["updated_at", "2015-10-30 14:45:09.372647"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.377013"], ["updated_at", "2015-10-30 14:45:09.377013"]] [1m[36m (0.0ms)[0m [1mRELEASE 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.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:09.382242"], ["updated_at", "2015-10-30 14:45:09.382242"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:45:09.384353"], ["updated_at", "2015-10-30 14:45:09.384353"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.386671"], ["updated_at", "2015-10-30 14:45:09.386671"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.389834"], ["updated_at", "2015-10-30 14:45:09.389834"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:45:09.391909"], ["updated_at", "2015-10-30 14:45:09.391909"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.394421"], ["updated_at", "2015-10-30 14:45:09.394421"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:45:09.395824"], ["updated_at", "2015-10-30 14:45:09.395824"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.398551"], ["updated_at", "2015-10-30 14:45:09.398551"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:45:09.403261"], ["updated_at", "2015-10-30 14:45:09.403261"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.406433"], ["updated_at", "2015-10-30 14:45:09.406433"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.409556"], ["updated_at", "2015-10-30 14:45:09.409556"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:45:09.417653"], ["updated_at", "2015-10-30 14:45:09.417653"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.421424"], ["updated_at", "2015-10-30 14:45:09.421424"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.426142"], ["updated_at", "2015-10-30 14:45:09.426142"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (5.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:45:09.444847"], ["updated_at", "2015-10-30 14:45:09.444847"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.448151"], ["updated_at", "2015-10-30 14:45:09.448151"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.453536"], ["updated_at", "2015-10-30 14:45:09.453536"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:45:09.459681"], ["updated_at", "2015-10-30 14:45:09.459681"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.462667"], ["updated_at", "2015-10-30 14:45:09.462667"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.467498"], ["updated_at", "2015-10-30 14:45:09.467498"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:45:09.471780"], ["updated_at", "2015-10-30 14:45:09.471780"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.474538"], ["updated_at", "2015-10-30 14:45:09.474538"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.477563"], ["updated_at", "2015-10-30 14:45:09.477563"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.490455"], ["updated_at", "2015-10-30 14:45:09.490455"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.494962"], ["updated_at", "2015-10-30 14:45:09.494962"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:45:09.497279"], ["updated_at", "2015-10-30 14:45:09.497279"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.500184"], ["updated_at", "2015-10-30 14:45:09.500184"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:45:09.501515"], ["updated_at", "2015-10-30 14:45:09.501515"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.503533"], ["updated_at", "2015-10-30 14:45:09.503533"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:45:09.505039"], ["updated_at", "2015-10-30 14:45:09.505039"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.507110"], ["updated_at", "2015-10-30 14:45:09.507110"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:45:09.508343"], ["updated_at", "2015-10-30 14:45:09.508343"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.510613"], ["updated_at", "2015-10-30 14:45:09.510613"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 14:45:09.518382"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:45:09.525296"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 14:45:09.533642"], ["id", 4]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.4ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.545679"], ["updated_at", "2015-10-30 14:45:09.545679"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 11.8ms Sent mail to user27@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633827588bdb_7d443ff019c5e1dc489c1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:45:09.561905"], ["updated_at", "2015-10-30 14:45:09.561905"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:45:09.563577"], ["updated_at", "2015-10-30 14:45:09.563577"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.565496"], ["updated_at", "2015-10-30 14:45:09.565496"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563382758adac_7d443ff019c5e1dc490bf@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.572721"], ["updated_at", "2015-10-30 14:45:09.572721"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563382758c8c7_7d443ff019c5e1dc491eb@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:45:09.577116"], ["updated_at", "2015-10-30 14:45:09.577116"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:45:09.578573"], ["updated_at", "2015-10-30 14:45:09.578573"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.580039"], ["updated_at", "2015-10-30 14:45:09.580039"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (2.2ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563382758e5e4_7d443ff019c5e1dc492c3@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.589592"], ["updated_at", "2015-10-30 14:45:09.589592"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56338275909ae_7d443ff019c5e1dc493b2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:45:09.593624"], ["updated_at", "2015-10-30 14:45:09.593624"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:45:09.595137"], ["updated_at", "2015-10-30 14:45:09.595137"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.596309"], ["updated_at", "2015-10-30 14:45:09.596309"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user30@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:45:09 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633827592554_7d443ff019c5e1dc4944b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:45:09.608379"], ["updated_at", "2015-10-30 14:45:09.608379"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:45:09.610769"], ["updated_at", "2015-10-30 14:45:09.610769"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.613206"], ["updated_at", "2015-10-30 14:45:09.613206"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.615518"], ["updated_at", "2015-10-30 14:45:09.615518"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:45:09.618712"], ["updated_at", "2015-10-30 14:45:09.618712"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:45:09.626571"], ["updated_at", "2015-10-30 14:45:09.626571"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:45:09.628598"], ["updated_at", "2015-10-30 14:45:09.628598"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:45:09.630865"], ["updated_at", "2015-10-30 14:45:09.630865"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:45:09.642597"], ["updated_at", "2015-10-30 14:45:09.642597"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:45:09.645380"], ["updated_at", "2015-10-30 14:45:09.645380"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:45:09.655568"], ["updated_at", "2015-10-30 14:45:09.655568"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:50:03.340181"], ["updated_at", "2015-10-30 14:50:03.340181"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.354233"], ["updated_at", "2015-10-30 14:50:03.354233"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.378962"], ["updated_at", "2015-10-30 14:50:03.378962"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.397149"], ["updated_at", "2015-10-30 14:50:03.397149"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.400386"], ["updated_at", "2015-10-30 14:50:03.400386"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 18ms (Views: 11.1ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:50:03.434832"], ["updated_at", "2015-10-30 14:50:03.434832"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:03.436901"], ["updated_at", "2015-10-30 14:50:03.436901"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.439131"], ["updated_at", "2015-10-30 14:50:03.439131"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.441402"], ["updated_at", "2015-10-30 14:50:03.441402"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.443515"], ["updated_at", "2015-10-30 14:50:03.443515"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.9ms) Rendered wupee/api/notifications/index.json.jbuilder (11.3ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.4ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:50:03.472846"], ["updated_at", "2015-10-30 14:50:03.472846"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:03.476161"], ["updated_at", "2015-10-30 14:50:03.476161"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.479530"], ["updated_at", "2015-10-30 14:50:03.479530"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.484720"], ["updated_at", "2015-10-30 14:50:03.484720"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.488029"], ["updated_at", "2015-10-30 14:50:03.488029"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] Rendered wupee/api/notifications/_notification.json.jbuilder (16.9ms) Rendered wupee/api/notifications/show.json.jbuilder (18.3ms) Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.2ms) [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:50:03.520794"], ["updated_at", "2015-10-30 14:50:03.520794"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:03.522780"], ["updated_at", "2015-10-30 14:50:03.522780"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.524923"], ["updated_at", "2015-10-30 14:50:03.524923"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.527700"], ["updated_at", "2015-10-30 14:50:03.527700"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.529806"], ["updated_at", "2015-10-30 14:50:03.529806"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] Rendered wupee/api/notifications/_notification.json.jbuilder (11.1ms) Rendered wupee/api/notifications/show.json.jbuilder (11.3ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:50:03.550165"], ["updated_at", "2015-10-30 14:50:03.550165"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.552515"], ["updated_at", "2015-10-30 14:50:03.552515"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.557566"], ["updated_at", "2015-10-30 14:50:03.557566"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.562825"], ["updated_at", "2015-10-30 14:50:03.562825"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.564740"], ["updated_at", "2015-10-30 14:50:03.564740"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 6ms (ActiveRecord: 0.3ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:50:03.748095"], ["updated_at", "2015-10-30 14:50:03.748095"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:50:03.750273"], ["updated_at", "2015-10-30 14:50:03.750273"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.753442"], ["updated_at", "2015-10-30 14:50:03.753442"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.755126"], ["updated_at", "2015-10-30 14:50:03.755126"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.756792"], ["updated_at", "2015-10-30 14:50:03.756792"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:50:03.763444"], ["updated_at", "2015-10-30 14:50:03.763444"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:50:03.765732"], ["updated_at", "2015-10-30 14:50:03.765732"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.768498"], ["updated_at", "2015-10-30 14:50:03.768498"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.769994"], ["updated_at", "2015-10-30 14:50:03.769994"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.771567"], ["updated_at", "2015-10-30 14:50:03.771567"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 19.0ms Sent mail to user7@sleede.com (8.0ms) Date: Fri, 30 Oct 2015 15:50:03 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5633839bc2d18_7d8e3fcebd84c1d4182c@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:50:03.804891"], ["updated_at", "2015-10-30 14:50:03.804891"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:50:03.807013"], ["updated_at", "2015-10-30 14:50:03.807013"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.810205"], ["updated_at", "2015-10-30 14:50:03.810205"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:03.812100"], ["updated_at", "2015-10-30 14:50:03.812100"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.813741"], ["updated_at", "2015-10-30 14:50:03.813741"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.5ms Sent mail to user8@sleede.com (4.2ms) Date: Fri, 30 Oct 2015 15:50:03 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5633839bc8717_7d8e3fcebd84c1d419f0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:50:03.829530"], ["updated_at", "2015-10-30 14:50:03.829530"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:50:03.832065"], ["updated_at", "2015-10-30 14:50:03.832065"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.834926"], ["updated_at", "2015-10-30 14:50:03.834926"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.836389"], ["updated_at", "2015-10-30 14:50:03.836389"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.837971"], ["updated_at", "2015-10-30 14:50:03.837971"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:50:03 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5633839bcd5e1_7d8e3fcebd84c1d42042@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:50:03.845829"], ["updated_at", "2015-10-30 14:50:03.845829"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:50:03.848108"], ["updated_at", "2015-10-30 14:50:03.848108"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.850782"], ["updated_at", "2015-10-30 14:50:03.850782"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:03.852225"], ["updated_at", "2015-10-30 14:50:03.852225"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.855556"], ["updated_at", "2015-10-30 14:50:03.855556"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.7ms Sent mail to user10@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 15:50:03 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5633839bd2538_7d8e3fcebd84c1d421f8@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.865274"], ["updated_at", "2015-10-30 14:50:03.865274"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:50:03.870954"], ["updated_at", "2015-10-30 14:50:03.870954"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.877915"], ["updated_at", "2015-10-30 14:50:03.877915"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.880802"], ["updated_at", "2015-10-30 14:50:03.880802"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.882629"], ["updated_at", "2015-10-30 14:50:03.882629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.893350"], ["updated_at", "2015-10-30 14:50:03.893350"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:50:03.895478"], ["updated_at", "2015-10-30 14:50:03.895478"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.898235"], ["updated_at", "2015-10-30 14:50:03.898235"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.900710"], ["updated_at", "2015-10-30 14:50:03.900710"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:50:03.903630"], ["updated_at", "2015-10-30 14:50:03.903630"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.907162"], ["updated_at", "2015-10-30 14:50:03.907162"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.909523"], ["updated_at", "2015-10-30 14:50:03.909523"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.911750"], ["updated_at", "2015-10-30 14:50:03.911750"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.915845"], ["updated_at", "2015-10-30 14:50:03.915845"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:50:03.921232"], ["updated_at", "2015-10-30 14:50:03.921232"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.928042"], ["updated_at", "2015-10-30 14:50:03.928042"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.931203"], ["updated_at", "2015-10-30 14:50:03.931203"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:50:03.932948"], ["updated_at", "2015-10-30 14:50:03.932948"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.935615"], ["updated_at", "2015-10-30 14:50:03.935615"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.937117"], ["updated_at", "2015-10-30 14:50:03.937117"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.938844"], ["updated_at", "2015-10-30 14:50:03.938844"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.942595"], ["updated_at", "2015-10-30 14:50:03.942595"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:50:03.944388"], ["updated_at", "2015-10-30 14:50:03.944388"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.946691"], ["updated_at", "2015-10-30 14:50:03.946691"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.949023"], ["updated_at", "2015-10-30 14:50:03.949023"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:03.956167"], ["updated_at", "2015-10-30 14:50:03.956167"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:50:03.959205"], ["updated_at", "2015-10-30 14:50:03.959205"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.963737"], ["updated_at", "2015-10-30 14:50:03.963737"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.969503"], ["updated_at", "2015-10-30 14:50:03.969503"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.979154"], ["updated_at", "2015-10-30 14:50:03.979154"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:50:03.981148"], ["updated_at", "2015-10-30 14:50:03.981148"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:03.983645"], ["updated_at", "2015-10-30 14:50:03.983645"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:03.985995"], ["updated_at", "2015-10-30 14:50:03.985995"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:50:03.987460"], ["updated_at", "2015-10-30 14:50:03.987460"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:03.990105"], ["updated_at", "2015-10-30 14:50:03.990105"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:03.991580"], ["updated_at", "2015-10-30 14:50:03.991580"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:03.993829"], ["updated_at", "2015-10-30 14:50:03.993829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:03.998189"], ["updated_at", "2015-10-30 14:50:03.998189"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:50:03.999999"], ["updated_at", "2015-10-30 14:50:03.999999"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.002287"], ["updated_at", "2015-10-30 14:50:04.002287"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.007375"], ["updated_at", "2015-10-30 14:50:04.007375"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:50:04.009580"], ["updated_at", "2015-10-30 14:50:04.009580"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:04.012722"], ["updated_at", "2015-10-30 14:50:04.012722"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:50:04.014769"], ["updated_at", "2015-10-30 14:50:04.014769"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.019833"], ["updated_at", "2015-10-30 14:50:04.019833"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:50:04.027005"], ["updated_at", "2015-10-30 14:50:04.027005"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.030016"], ["updated_at", "2015-10-30 14:50:04.030016"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.033214"], ["updated_at", "2015-10-30 14:50:04.033214"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:50:04.038364"], ["updated_at", "2015-10-30 14:50:04.038364"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.040871"], ["updated_at", "2015-10-30 14:50:04.040871"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.044032"], ["updated_at", "2015-10-30 14:50:04.044032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:50:04.048690"], ["updated_at", "2015-10-30 14:50:04.048690"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.051271"], ["updated_at", "2015-10-30 14:50:04.051271"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.053849"], ["updated_at", "2015-10-30 14:50:04.053849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.6ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:50:04.060136"], ["updated_at", "2015-10-30 14:50:04.060136"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.064962"], ["updated_at", "2015-10-30 14:50:04.064962"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.068581"], ["updated_at", "2015-10-30 14:50:04.068581"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:50:04.075705"], ["updated_at", "2015-10-30 14:50:04.075705"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.082955"], ["updated_at", "2015-10-30 14:50:04.082955"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.085953"], ["updated_at", "2015-10-30 14:50:04.085953"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.090025"], ["updated_at", "2015-10-30 14:50:04.090025"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.094804"], ["updated_at", "2015-10-30 14:50:04.094804"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:50:04.096952"], ["updated_at", "2015-10-30 14:50:04.096952"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:04.100076"], ["updated_at", "2015-10-30 14:50:04.100076"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:50:04.101479"], ["updated_at", "2015-10-30 14:50:04.101479"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:04.103568"], ["updated_at", "2015-10-30 14:50:04.103568"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:50:04.104822"], ["updated_at", "2015-10-30 14:50:04.104822"]] [1m[35m (0.0ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:04.107315"], ["updated_at", "2015-10-30 14:50:04.107315"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:50:04.110967"], ["updated_at", "2015-10-30 14:50:04.110967"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:04.114330"], ["updated_at", "2015-10-30 14:50:04.114330"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 14:50:04.123249"], ["id", 2]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:50:04.132525"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 14:50:04.135830"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.143831"], ["updated_at", "2015-10-30 14:50:04.143831"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 12.7ms Sent mail to user27@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:50:04 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633839c26c68_7d8e3fcebd84c1d422a6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:50:04.160704"], ["updated_at", "2015-10-30 14:50:04.160704"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:50:04.162685"], ["updated_at", "2015-10-30 14:50:04.162685"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.164303"], ["updated_at", "2015-10-30 14:50:04.164303"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:50:04 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633839c28d73_7d8e3fcebd84c1d4238@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.170910"], ["updated_at", "2015-10-30 14:50:04.170910"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 15:50:04 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633839c2a628_7d8e3fcebd84c1d424ca@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:50:04.175542"], ["updated_at", "2015-10-30 14:50:04.175542"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:50:04.178013"], ["updated_at", "2015-10-30 14:50:04.178013"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.179693"], ["updated_at", "2015-10-30 14:50:04.179693"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user30@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 15:50:04 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633839c2ca9f_7d8e3fcebd84c1d4258e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.187202"], ["updated_at", "2015-10-30 14:50:04.187202"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:50:04 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633839c2e687_7d8e3fcebd84c1d426d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:50:04.191489"], ["updated_at", "2015-10-30 14:50:04.191489"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:50:04.193449"], ["updated_at", "2015-10-30 14:50:04.193449"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.195055"], ["updated_at", "2015-10-30 14:50:04.195055"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 15:50:04 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633839c305b8_7d8e3fcebd84c1d427d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:50:04.207330"], ["updated_at", "2015-10-30 14:50:04.207330"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:50:04.209709"], ["updated_at", "2015-10-30 14:50:04.209709"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.212271"], ["updated_at", "2015-10-30 14:50:04.212271"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.214503"], ["updated_at", "2015-10-30 14:50:04.214503"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:50:04.215927"], ["updated_at", "2015-10-30 14:50:04.215927"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:50:04.222609"], ["updated_at", "2015-10-30 14:50:04.222609"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:50:04.224829"], ["updated_at", "2015-10-30 14:50:04.224829"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:50:04.227711"], ["updated_at", "2015-10-30 14:50:04.227711"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:50:04.239446"], ["updated_at", "2015-10-30 14:50:04.239446"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:50:04.242552"], ["updated_at", "2015-10-30 14:50:04.242552"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:50:04.245516"], ["updated_at", "2015-10-30 14:50:04.245516"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 14:54:06.469648"], ["updated_at", "2015-10-30 14:54:06.469648"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:06.493774"], ["updated_at", "2015-10-30 14:54:06.493774"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:06.524589"], ["updated_at", "2015-10-30 14:54:06.524589"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:06.550959"], ["updated_at", "2015-10-30 14:54:06.550959"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:06.554902"], ["updated_at", "2015-10-30 14:54:06.554902"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 17ms (Views: 10.3ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 14:54:06.590929"], ["updated_at", "2015-10-30 14:54:06.590929"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:06.594632"], ["updated_at", "2015-10-30 14:54:06.594632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:06.597349"], ["updated_at", "2015-10-30 14:54:06.597349"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:06.601072"], ["updated_at", "2015-10-30 14:54:06.601072"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:06.603185"], ["updated_at", "2015-10-30 14:54:06.603185"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.3ms) Rendered wupee/api/notifications/index.json.jbuilder (11.1ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 14:54:06.633897"], ["updated_at", "2015-10-30 14:54:06.633897"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:06.636948"], ["updated_at", "2015-10-30 14:54:06.636948"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:06.642876"], ["updated_at", "2015-10-30 14:54:06.642876"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:06.649938"], ["updated_at", "2015-10-30 14:54:06.649938"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:06.651987"], ["updated_at", "2015-10-30 14:54:06.651987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.5ms) Rendered wupee/api/notifications/show.json.jbuilder (2.6ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 14:54:06.664335"], ["updated_at", "2015-10-30 14:54:06.664335"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:06.666694"], ["updated_at", "2015-10-30 14:54:06.666694"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:06.669669"], ["updated_at", "2015-10-30 14:54:06.669669"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:06.672089"], ["updated_at", "2015-10-30 14:54:06.672089"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:06.673812"], ["updated_at", "2015-10-30 14:54:06.673812"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.2ms) Rendered wupee/api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 14:54:06.684501"], ["updated_at", "2015-10-30 14:54:06.684501"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:06.686760"], ["updated_at", "2015-10-30 14:54:06.686760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:06.689172"], ["updated_at", "2015-10-30 14:54:06.689172"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:06.691577"], ["updated_at", "2015-10-30 14:54:06.691577"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:06.693340"], ["updated_at", "2015-10-30 14:54:06.693340"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 5ms (ActiveRecord: 0.3ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:54:06.902746"], ["updated_at", "2015-10-30 14:54:06.902746"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 14:54:06.906288"], ["updated_at", "2015-10-30 14:54:06.906288"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:06.911208"], ["updated_at", "2015-10-30 14:54:06.911208"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:06.913832"], ["updated_at", "2015-10-30 14:54:06.913832"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:06.916925"], ["updated_at", "2015-10-30 14:54:06.916925"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:54:06.924859"], ["updated_at", "2015-10-30 14:54:06.924859"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 14:54:06.928135"], ["updated_at", "2015-10-30 14:54:06.928135"]] [1m[35m (1.4ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:06.942419"], ["updated_at", "2015-10-30 14:54:06.942419"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:06.946652"], ["updated_at", "2015-10-30 14:54:06.946652"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:06.950057"], ["updated_at", "2015-10-30 14:54:06.950057"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 35.0ms Sent mail to user7@sleede.com (8.6ms) Date: Fri, 30 Oct 2015 15:54:06 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5633848ef2766_7e083ff7450601e0103fc@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:54:07.004840"], ["updated_at", "2015-10-30 14:54:07.004840"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 14:54:07.008462"], ["updated_at", "2015-10-30 14:54:07.008462"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.012800"], ["updated_at", "2015-10-30 14:54:07.012800"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:07.015596"], ["updated_at", "2015-10-30 14:54:07.015596"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.018063"], ["updated_at", "2015-10-30 14:54:07.018063"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.5ms Sent mail to user8@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5633848f599c_7e083ff7450601e0104bf@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:54:07.028612"], ["updated_at", "2015-10-30 14:54:07.028612"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 14:54:07.032278"], ["updated_at", "2015-10-30 14:54:07.032278"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.043324"], ["updated_at", "2015-10-30 14:54:07.043324"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.047024"], ["updated_at", "2015-10-30 14:54:07.047024"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.050700"], ["updated_at", "2015-10-30 14:54:07.050700"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.8ms Sent mail to user9@sleede.com (5.6ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5633848fdc73_7e083ff7450601e01054a@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 14:54:07.070447"], ["updated_at", "2015-10-30 14:54:07.070447"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 14:54:07.073901"], ["updated_at", "2015-10-30 14:54:07.073901"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.077727"], ["updated_at", "2015-10-30 14:54:07.077727"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:07.079244"], ["updated_at", "2015-10-30 14:54:07.079244"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.082424"], ["updated_at", "2015-10-30 14:54:07.082424"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user10@sleede.com (1.9ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5633848f152c9_7e083ff7450601e01067a@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.091021"], ["updated_at", "2015-10-30 14:54:07.091021"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 14:54:07.093645"], ["updated_at", "2015-10-30 14:54:07.093645"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.097048"], ["updated_at", "2015-10-30 14:54:07.097048"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.103227"], ["updated_at", "2015-10-30 14:54:07.103227"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.107174"], ["updated_at", "2015-10-30 14:54:07.107174"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.8ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.126477"], ["updated_at", "2015-10-30 14:54:07.126477"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 14:54:07.128486"], ["updated_at", "2015-10-30 14:54:07.128486"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.132951"], ["updated_at", "2015-10-30 14:54:07.132951"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.136561"], ["updated_at", "2015-10-30 14:54:07.136561"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 14:54:07.139028"], ["updated_at", "2015-10-30 14:54:07.139028"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.141561"], ["updated_at", "2015-10-30 14:54:07.141561"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.142948"], ["updated_at", "2015-10-30 14:54:07.142948"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.144626"], ["updated_at", "2015-10-30 14:54:07.144626"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.148738"], ["updated_at", "2015-10-30 14:54:07.148738"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 14:54:07.150345"], ["updated_at", "2015-10-30 14:54:07.150345"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.152762"], ["updated_at", "2015-10-30 14:54:07.152762"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.155038"], ["updated_at", "2015-10-30 14:54:07.155038"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 14:54:07.157427"], ["updated_at", "2015-10-30 14:54:07.157427"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.161847"], ["updated_at", "2015-10-30 14:54:07.161847"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.164287"], ["updated_at", "2015-10-30 14:54:07.164287"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.169351"], ["updated_at", "2015-10-30 14:54:07.169351"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.178385"], ["updated_at", "2015-10-30 14:54:07.178385"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 14:54:07.184555"], ["updated_at", "2015-10-30 14:54:07.184555"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.187492"], ["updated_at", "2015-10-30 14:54:07.187492"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.190556"], ["updated_at", "2015-10-30 14:54:07.190556"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:07.196906"], ["updated_at", "2015-10-30 14:54:07.196906"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 14:54:07.200661"], ["updated_at", "2015-10-30 14:54:07.200661"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.205236"], ["updated_at", "2015-10-30 14:54:07.205236"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.208367"], ["updated_at", "2015-10-30 14:54:07.208367"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.215991"], ["updated_at", "2015-10-30 14:54:07.215991"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 14:54:07.219044"], ["updated_at", "2015-10-30 14:54:07.219044"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.225713"], ["updated_at", "2015-10-30 14:54:07.225713"]] [1m[36m (1.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.237051"], ["updated_at", "2015-10-30 14:54:07.237051"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 14:54:07.240074"], ["updated_at", "2015-10-30 14:54:07.240074"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.244023"], ["updated_at", "2015-10-30 14:54:07.244023"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.248596"], ["updated_at", "2015-10-30 14:54:07.248596"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.253236"], ["updated_at", "2015-10-30 14:54:07.253236"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:07.258056"], ["updated_at", "2015-10-30 14:54:07.258056"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 14:54:07.264714"], ["updated_at", "2015-10-30 14:54:07.264714"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.269624"], ["updated_at", "2015-10-30 14:54:07.269624"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.276076"], ["updated_at", "2015-10-30 14:54:07.276076"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 14:54:07.282700"], ["updated_at", "2015-10-30 14:54:07.282700"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.285848"], ["updated_at", "2015-10-30 14:54:07.285848"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 14:54:07.287642"], ["updated_at", "2015-10-30 14:54:07.287642"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.289687"], ["updated_at", "2015-10-30 14:54:07.289687"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 14:54:07.293178"], ["updated_at", "2015-10-30 14:54:07.293178"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.295488"], ["updated_at", "2015-10-30 14:54:07.295488"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.299317"], ["updated_at", "2015-10-30 14:54:07.299317"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 14:54:07.305924"], ["updated_at", "2015-10-30 14:54:07.305924"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.308187"], ["updated_at", "2015-10-30 14:54:07.308187"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.310510"], ["updated_at", "2015-10-30 14:54:07.310510"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 14:54:07.315850"], ["updated_at", "2015-10-30 14:54:07.315850"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.318119"], ["updated_at", "2015-10-30 14:54:07.318119"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.320589"], ["updated_at", "2015-10-30 14:54:07.320589"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 14:54:07.326141"], ["updated_at", "2015-10-30 14:54:07.326141"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.329973"], ["updated_at", "2015-10-30 14:54:07.329973"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.340104"], ["updated_at", "2015-10-30 14:54:07.340104"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 14:54:07.348149"], ["updated_at", "2015-10-30 14:54:07.348149"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.356592"], ["updated_at", "2015-10-30 14:54:07.356592"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.360894"], ["updated_at", "2015-10-30 14:54:07.360894"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.365835"], ["updated_at", "2015-10-30 14:54:07.365835"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.371535"], ["updated_at", "2015-10-30 14:54:07.371535"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 14:54:07.373327"], ["updated_at", "2015-10-30 14:54:07.373327"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.376695"], ["updated_at", "2015-10-30 14:54:07.376695"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 14:54:07.377992"], ["updated_at", "2015-10-30 14:54:07.377992"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.380274"], ["updated_at", "2015-10-30 14:54:07.380274"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 14:54:07.383803"], ["updated_at", "2015-10-30 14:54:07.383803"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.387923"], ["updated_at", "2015-10-30 14:54:07.387923"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 14:54:07.390139"], ["updated_at", "2015-10-30 14:54:07.390139"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.392840"], ["updated_at", "2015-10-30 14:54:07.392840"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 14:54:07.401296"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 14:54:07.409860"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 14:54:07.412941"], ["id", 4]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.420767"], ["updated_at", "2015-10-30 14:54:07.420767"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 9.9ms Sent mail to user27@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633848f69c4d_7e083ff7450601e01074b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:54:07.435034"], ["updated_at", "2015-10-30 14:54:07.435034"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:54:07.437552"], ["updated_at", "2015-10-30 14:54:07.437552"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.439084"], ["updated_at", "2015-10-30 14:54:07.439084"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633848f6bdaf_7e083ff7450601e0108df@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.445320"], ["updated_at", "2015-10-30 14:54:07.445320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user27@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633848f6d944_7e083ff7450601e0109fc@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:54:07.450596"], ["updated_at", "2015-10-30 14:54:07.450596"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:54:07.452252"], ["updated_at", "2015-10-30 14:54:07.452252"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.453602"], ["updated_at", "2015-10-30 14:54:07.453602"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633848f6f65c_7e083ff7450601e0110a0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.460097"], ["updated_at", "2015-10-30 14:54:07.460097"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633848f70fea_7e083ff7450601e0111e4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:54:07.464198"], ["updated_at", "2015-10-30 14:54:07.464198"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 14:54:07.466188"], ["updated_at", "2015-10-30 14:54:07.466188"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.468250"], ["updated_at", "2015-10-30 14:54:07.468250"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.7ms) Date: Fri, 30 Oct 2015 15:54:07 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633848f7316a_7e083ff7450601e01127c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 14:54:07.481019"], ["updated_at", "2015-10-30 14:54:07.481019"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 14:54:07.483459"], ["updated_at", "2015-10-30 14:54:07.483459"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.486099"], ["updated_at", "2015-10-30 14:54:07.486099"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.488754"], ["updated_at", "2015-10-30 14:54:07.488754"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 14:54:07.490526"], ["updated_at", "2015-10-30 14:54:07.490526"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 14:54:07.498309"], ["updated_at", "2015-10-30 14:54:07.498309"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 14:54:07.501688"], ["updated_at", "2015-10-30 14:54:07.501688"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 14:54:07.504594"], ["updated_at", "2015-10-30 14:54:07.504594"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.2ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 14:54:07.515196"], ["updated_at", "2015-10-30 14:54:07.515196"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 14:54:07.518095"], ["updated_at", "2015-10-30 14:54:07.518095"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 14:54:07.520749"], ["updated_at", "2015-10-30 14:54:07.520749"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.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.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 15:07:17.624102"], ["updated_at", "2015-10-30 15:07:17.624102"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:17.639591"], ["updated_at", "2015-10-30 15:07:17.639591"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:17.662900"], ["updated_at", "2015-10-30 15:07:17.662900"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:17.681196"], ["updated_at", "2015-10-30 15:07:17.681196"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:17.685609"], ["updated_at", "2015-10-30 15:07:17.685609"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 10.8ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:07:17.722920"], ["updated_at", "2015-10-30 15:07:17.722920"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:17.725004"], ["updated_at", "2015-10-30 15:07:17.725004"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:17.727688"], ["updated_at", "2015-10-30 15:07:17.727688"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:17.730044"], ["updated_at", "2015-10-30 15:07:17.730044"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:17.731935"], ["updated_at", "2015-10-30 15:07:17.731935"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.9ms) Rendered wupee/api/notifications/index.json.jbuilder (11.3ms) Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:07:17.789383"], ["updated_at", "2015-10-30 15:07:17.789383"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:17.791879"], ["updated_at", "2015-10-30 15:07:17.791879"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:17.794217"], ["updated_at", "2015-10-30 15:07:17.794217"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:17.796608"], ["updated_at", "2015-10-30 15:07:17.796608"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:17.799003"], ["updated_at", "2015-10-30 15:07:17.799003"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.5ms) Rendered wupee/api/notifications/show.json.jbuilder (2.7ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.2ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:07:17.812778"], ["updated_at", "2015-10-30 15:07:17.812778"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:17.815225"], ["updated_at", "2015-10-30 15:07:17.815225"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:17.817600"], ["updated_at", "2015-10-30 15:07:17.817600"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:17.820795"], ["updated_at", "2015-10-30 15:07:17.820795"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:17.822970"], ["updated_at", "2015-10-30 15:07:17.822970"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.5ms) Rendered wupee/api/notifications/show.json.jbuilder (2.1ms) Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 15:07:17.836905"], ["updated_at", "2015-10-30 15:07:17.836905"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:17.841992"], ["updated_at", "2015-10-30 15:07:17.841992"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:17.849943"], ["updated_at", "2015-10-30 15:07:17.849943"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:17.852395"], ["updated_at", "2015-10-30 15:07:17.852395"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:17.853854"], ["updated_at", "2015-10-30 15:07:17.853854"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:18.010684"], ["updated_at", "2015-10-30 15:07:18.010684"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:07:18.013004"], ["updated_at", "2015-10-30 15:07:18.013004"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.015955"], ["updated_at", "2015-10-30 15:07:18.015955"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.017479"], ["updated_at", "2015-10-30 15:07:18.017479"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.018753"], ["updated_at", "2015-10-30 15:07:18.018753"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:18.025082"], ["updated_at", "2015-10-30 15:07:18.025082"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:07:18.027565"], ["updated_at", "2015-10-30 15:07:18.027565"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.030394"], ["updated_at", "2015-10-30 15:07:18.030394"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.031846"], ["updated_at", "2015-10-30 15:07:18.031846"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.033266"], ["updated_at", "2015-10-30 15:07:18.033266"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 16.5ms Sent mail to user7@sleede.com (7.9ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563387a6db8f_7ecd3fc74cc5e1dc7178c@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:18.064081"], ["updated_at", "2015-10-30 15:07:18.064081"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 15:07:18.066616"], ["updated_at", "2015-10-30 15:07:18.066616"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.069337"], ["updated_at", "2015-10-30 15:07:18.069337"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:18.070926"], ["updated_at", "2015-10-30 15:07:18.070926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.076510"], ["updated_at", "2015-10-30 15:07:18.076510"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.0ms Sent mail to user8@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563387a614a49_7ecd3fc74cc5e1dc71898@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:18.088475"], ["updated_at", "2015-10-30 15:07:18.088475"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:07:18.090437"], ["updated_at", "2015-10-30 15:07:18.090437"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.093403"], ["updated_at", "2015-10-30 15:07:18.093403"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.094789"], ["updated_at", "2015-10-30 15:07:18.094789"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.096043"], ["updated_at", "2015-10-30 15:07:18.096043"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563387a618458_7ecd3fc74cc5e1dc7197@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:18.103435"], ["updated_at", "2015-10-30 15:07:18.103435"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 15:07:18.105516"], ["updated_at", "2015-10-30 15:07:18.105516"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.112566"], ["updated_at", "2015-10-30 15:07:18.112566"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:18.114963"], ["updated_at", "2015-10-30 15:07:18.114963"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.117356"], ["updated_at", "2015-10-30 15:07:18.117356"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user10@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563387a61d6bb_7ecd3fc74cc5e1dc72067@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.127589"], ["updated_at", "2015-10-30 15:07:18.127589"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:07:18.130826"], ["updated_at", "2015-10-30 15:07:18.130826"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.134653"], ["updated_at", "2015-10-30 15:07:18.134653"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.136867"], ["updated_at", "2015-10-30 15:07:18.136867"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.138306"], ["updated_at", "2015-10-30 15:07:18.138306"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.149781"], ["updated_at", "2015-10-30 15:07:18.149781"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:07:18.151608"], ["updated_at", "2015-10-30 15:07:18.151608"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.153926"], ["updated_at", "2015-10-30 15:07:18.153926"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.156124"], ["updated_at", "2015-10-30 15:07:18.156124"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:07:18.157558"], ["updated_at", "2015-10-30 15:07:18.157558"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.162817"], ["updated_at", "2015-10-30 15:07:18.162817"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.165318"], ["updated_at", "2015-10-30 15:07:18.165318"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.168155"], ["updated_at", "2015-10-30 15:07:18.168155"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.171794"], ["updated_at", "2015-10-30 15:07:18.171794"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:07:18.177330"], ["updated_at", "2015-10-30 15:07:18.177330"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.184474"], ["updated_at", "2015-10-30 15:07:18.184474"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.187495"], ["updated_at", "2015-10-30 15:07:18.187495"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:07:18.189838"], ["updated_at", "2015-10-30 15:07:18.189838"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.193401"], ["updated_at", "2015-10-30 15:07:18.193401"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.195007"], ["updated_at", "2015-10-30 15:07:18.195007"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.196866"], ["updated_at", "2015-10-30 15:07:18.196866"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.200577"], ["updated_at", "2015-10-30 15:07:18.200577"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:07:18.202164"], ["updated_at", "2015-10-30 15:07:18.202164"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.204214"], ["updated_at", "2015-10-30 15:07:18.204214"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.206297"], ["updated_at", "2015-10-30 15:07:18.206297"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:18.214002"], ["updated_at", "2015-10-30 15:07:18.214002"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 15:07:18.216044"], ["updated_at", "2015-10-30 15:07:18.216044"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.220183"], ["updated_at", "2015-10-30 15:07:18.220183"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.227910"], ["updated_at", "2015-10-30 15:07:18.227910"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.234435"], ["updated_at", "2015-10-30 15:07:18.234435"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:07:18.235944"], ["updated_at", "2015-10-30 15:07:18.235944"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.237991"], ["updated_at", "2015-10-30 15:07:18.237991"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.240147"], ["updated_at", "2015-10-30 15:07:18.240147"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:07:18.241578"], ["updated_at", "2015-10-30 15:07:18.241578"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.245756"], ["updated_at", "2015-10-30 15:07:18.245756"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.247956"], ["updated_at", "2015-10-30 15:07:18.247956"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.250096"], ["updated_at", "2015-10-30 15:07:18.250096"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:18.254795"], ["updated_at", "2015-10-30 15:07:18.254795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 15:07:18.256441"], ["updated_at", "2015-10-30 15:07:18.256441"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.261648"], ["updated_at", "2015-10-30 15:07:18.261648"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.265726"], ["updated_at", "2015-10-30 15:07:18.265726"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 15:07:18.267714"], ["updated_at", "2015-10-30 15:07:18.267714"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.270027"], ["updated_at", "2015-10-30 15:07:18.270027"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:18.271972"], ["updated_at", "2015-10-30 15:07:18.271972"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.281277"], ["updated_at", "2015-10-30 15:07:18.281277"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 15:07:18.285894"], ["updated_at", "2015-10-30 15:07:18.285894"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.288111"], ["updated_at", "2015-10-30 15:07:18.288111"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.290544"], ["updated_at", "2015-10-30 15:07:18.290544"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:07:18.296872"], ["updated_at", "2015-10-30 15:07:18.296872"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.299212"], ["updated_at", "2015-10-30 15:07:18.299212"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.301603"], ["updated_at", "2015-10-30 15:07:18.301603"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 15:07:18.306026"], ["updated_at", "2015-10-30 15:07:18.306026"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.308265"], ["updated_at", "2015-10-30 15:07:18.308265"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.312674"], ["updated_at", "2015-10-30 15:07:18.312674"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) 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.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 15:07:18.318704"], ["updated_at", "2015-10-30 15:07:18.318704"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.322794"], ["updated_at", "2015-10-30 15:07:18.322794"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.327368"], ["updated_at", "2015-10-30 15:07:18.327368"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 15:07:18.336388"], ["updated_at", "2015-10-30 15:07:18.336388"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.342025"], ["updated_at", "2015-10-30 15:07:18.342025"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.346912"], ["updated_at", "2015-10-30 15:07:18.346912"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.351263"], ["updated_at", "2015-10-30 15:07:18.351263"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.355389"], ["updated_at", "2015-10-30 15:07:18.355389"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:07:18.357736"], ["updated_at", "2015-10-30 15:07:18.357736"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.360726"], ["updated_at", "2015-10-30 15:07:18.360726"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 15:07:18.362267"], ["updated_at", "2015-10-30 15:07:18.362267"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.365068"], ["updated_at", "2015-10-30 15:07:18.365068"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:07:18.366444"], ["updated_at", "2015-10-30 15:07:18.366444"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.368958"], ["updated_at", "2015-10-30 15:07:18.368958"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 15:07:18.371627"], ["updated_at", "2015-10-30 15:07:18.371627"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.374799"], ["updated_at", "2015-10-30 15:07:18.374799"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 15:07:18.385929"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 15:07:18.393474"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 15:07:18.396235"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.403083"], ["updated_at", "2015-10-30 15:07:18.403083"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 14.7ms Sent mail to user27@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563387a66674c_7ecd3fc74cc5e1dc7219@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:18.421424"], ["updated_at", "2015-10-30 15:07:18.421424"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:18.422843"], ["updated_at", "2015-10-30 15:07:18.422843"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.424009"], ["updated_at", "2015-10-30 15:07:18.424009"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563387a6684e5_7ecd3fc74cc5e1dc722b8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.430653"], ["updated_at", "2015-10-30 15:07:18.430653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563387a669cff_7ecd3fc74cc5e1dc72375@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:18.434812"], ["updated_at", "2015-10-30 15:07:18.434812"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:18.436369"], ["updated_at", "2015-10-30 15:07:18.436369"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.437613"], ["updated_at", "2015-10-30 15:07:18.437613"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563387a66b781_7ecd3fc74cc5e1dc724ee@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.445844"], ["updated_at", "2015-10-30 15:07:18.445844"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563387a66d88c_7ecd3fc74cc5e1dc72591@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:18.450032"], ["updated_at", "2015-10-30 15:07:18.450032"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:18.451358"], ["updated_at", "2015-10-30 15:07:18.451358"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.452517"], ["updated_at", "2015-10-30 15:07:18.452517"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 16:07:18 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563387a66f15a_7ecd3fc74cc5e1dc726a4@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 15:07:18.463202"], ["updated_at", "2015-10-30 15:07:18.463202"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:18.465294"], ["updated_at", "2015-10-30 15:07:18.465294"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.467591"], ["updated_at", "2015-10-30 15:07:18.467591"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.470259"], ["updated_at", "2015-10-30 15:07:18.470259"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:18.471734"], ["updated_at", "2015-10-30 15:07:18.471734"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 15:07:18.479301"], ["updated_at", "2015-10-30 15:07:18.479301"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:18.481673"], ["updated_at", "2015-10-30 15:07:18.481673"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:18.484035"], ["updated_at", "2015-10-30 15:07:18.484035"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:18.494918"], ["updated_at", "2015-10-30 15:07:18.494918"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 15:07:18.497961"], ["updated_at", "2015-10-30 15:07:18.497961"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:18.501398"], ["updated_at", "2015-10-30 15:07:18.501398"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 15:07:53.725107"], ["updated_at", "2015-10-30 15:07:53.725107"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:53.737375"], ["updated_at", "2015-10-30 15:07:53.737375"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:53.753331"], ["updated_at", "2015-10-30 15:07:53.753331"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:53.773197"], ["updated_at", "2015-10-30 15:07:53.773197"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:53.776482"], ["updated_at", "2015-10-30 15:07:53.776482"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 16ms (Views: 10.8ms | ActiveRecord: 0.0ms) [1m[35m (8.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:07:53.815363"], ["updated_at", "2015-10-30 15:07:53.815363"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:53.818119"], ["updated_at", "2015-10-30 15:07:53.818119"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:53.820920"], ["updated_at", "2015-10-30 15:07:53.820920"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:53.823549"], ["updated_at", "2015-10-30 15:07:53.823549"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:53.825402"], ["updated_at", "2015-10-30 15:07:53.825402"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.5ms) Rendered wupee/api/notifications/index.json.jbuilder (10.2ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:07:53.856586"], ["updated_at", "2015-10-30 15:07:53.856586"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:53.861323"], ["updated_at", "2015-10-30 15:07:53.861323"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.3ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:53.872493"], ["updated_at", "2015-10-30 15:07:53.872493"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:53.878176"], ["updated_at", "2015-10-30 15:07:53.878176"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:53.881628"], ["updated_at", "2015-10-30 15:07:53.881628"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.2ms) Rendered wupee/api/notifications/show.json.jbuilder (4.6ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.4ms) [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:07:53.900612"], ["updated_at", "2015-10-30 15:07:53.900612"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:53.904270"], ["updated_at", "2015-10-30 15:07:53.904270"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:53.908504"], ["updated_at", "2015-10-30 15:07:53.908504"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:53.914154"], ["updated_at", "2015-10-30 15:07:53.914154"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:53.917274"], ["updated_at", "2015-10-30 15:07:53.917274"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.8ms) Rendered wupee/api/notifications/show.json.jbuilder (3.6ms) Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms) [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 15:07:53.936069"], ["updated_at", "2015-10-30 15:07:53.936069"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:53.939923"], ["updated_at", "2015-10-30 15:07:53.939923"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:53.946024"], ["updated_at", "2015-10-30 15:07:53.946024"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:53.949753"], ["updated_at", "2015-10-30 15:07:53.949753"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:53.951792"], ["updated_at", "2015-10-30 15:07:53.951792"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.6ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 11ms (ActiveRecord: 0.8ms) [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:54.140315"], ["updated_at", "2015-10-30 15:07:54.140315"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:07:54.145024"], ["updated_at", "2015-10-30 15:07:54.145024"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.150706"], ["updated_at", "2015-10-30 15:07:54.150706"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.154010"], ["updated_at", "2015-10-30 15:07:54.154010"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.156463"], ["updated_at", "2015-10-30 15:07:54.156463"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (7.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:54.172221"], ["updated_at", "2015-10-30 15:07:54.172221"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:07:54.176319"], ["updated_at", "2015-10-30 15:07:54.176319"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.181891"], ["updated_at", "2015-10-30 15:07:54.181891"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.184629"], ["updated_at", "2015-10-30 15:07:54.184629"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.187547"], ["updated_at", "2015-10-30 15:07:54.187547"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.8ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 22.7ms Sent mail to user7@sleede.com (6.4ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563387ca3521e_7ed83ffa2a4521d081562@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:54.225238"], ["updated_at", "2015-10-30 15:07:54.225238"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 15:07:54.235638"], ["updated_at", "2015-10-30 15:07:54.235638"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.241046"], ["updated_at", "2015-10-30 15:07:54.241046"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:54.244771"], ["updated_at", "2015-10-30 15:07:54.244771"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.248251"], ["updated_at", "2015-10-30 15:07:54.248251"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.3ms Sent mail to user8@sleede.com (2.0ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563387ca3df33_7ed83ffa2a4521d0816fc@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:54.260496"], ["updated_at", "2015-10-30 15:07:54.260496"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:07:54.266613"], ["updated_at", "2015-10-30 15:07:54.266613"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.272844"], ["updated_at", "2015-10-30 15:07:54.272844"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.276599"], ["updated_at", "2015-10-30 15:07:54.276599"]] [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.288058"], ["updated_at", "2015-10-30 15:07:54.288058"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.7ms Sent mail to user9@sleede.com (2.3ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563387ca48291_7ed83ffa2a4521d0817a@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:07:54.302112"], ["updated_at", "2015-10-30 15:07:54.302112"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 15:07:54.305485"], ["updated_at", "2015-10-30 15:07:54.305485"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.311625"], ["updated_at", "2015-10-30 15:07:54.311625"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:54.314892"], ["updated_at", "2015-10-30 15:07:54.314892"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.318161"], ["updated_at", "2015-10-30 15:07:54.318161"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.3ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.0ms Sent mail to user10@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563387ca4ead3_7ed83ffa2a4521d08182d@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.326673"], ["updated_at", "2015-10-30 15:07:54.326673"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:07:54.329393"], ["updated_at", "2015-10-30 15:07:54.329393"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.332581"], ["updated_at", "2015-10-30 15:07:54.332581"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.337171"], ["updated_at", "2015-10-30 15:07:54.337171"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.340346"], ["updated_at", "2015-10-30 15:07:54.340346"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.350744"], ["updated_at", "2015-10-30 15:07:54.350744"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:07:54.352383"], ["updated_at", "2015-10-30 15:07:54.352383"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.354616"], ["updated_at", "2015-10-30 15:07:54.354616"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.359677"], ["updated_at", "2015-10-30 15:07:54.359677"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:07:54.365267"], ["updated_at", "2015-10-30 15:07:54.365267"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.369240"], ["updated_at", "2015-10-30 15:07:54.369240"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.370652"], ["updated_at", "2015-10-30 15:07:54.370652"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.372416"], ["updated_at", "2015-10-30 15:07:54.372416"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.375707"], ["updated_at", "2015-10-30 15:07:54.375707"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:07:54.377209"], ["updated_at", "2015-10-30 15:07:54.377209"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.380140"], ["updated_at", "2015-10-30 15:07:54.380140"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.382822"], ["updated_at", "2015-10-30 15:07:54.382822"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:07:54.384447"], ["updated_at", "2015-10-30 15:07:54.384447"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.387107"], ["updated_at", "2015-10-30 15:07:54.387107"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.388559"], ["updated_at", "2015-10-30 15:07:54.388559"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.390290"], ["updated_at", "2015-10-30 15:07:54.390290"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.393905"], ["updated_at", "2015-10-30 15:07:54.393905"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:07:54.396932"], ["updated_at", "2015-10-30 15:07:54.396932"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.399862"], ["updated_at", "2015-10-30 15:07:54.399862"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.403206"], ["updated_at", "2015-10-30 15:07:54.403206"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:54.414947"], ["updated_at", "2015-10-30 15:07:54.414947"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 15:07:54.418692"], ["updated_at", "2015-10-30 15:07:54.418692"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.421174"], ["updated_at", "2015-10-30 15:07:54.421174"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.423697"], ["updated_at", "2015-10-30 15:07:54.423697"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.428900"], ["updated_at", "2015-10-30 15:07:54.428900"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:07:54.430519"], ["updated_at", "2015-10-30 15:07:54.430519"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.432758"], ["updated_at", "2015-10-30 15:07:54.432758"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.434918"], ["updated_at", "2015-10-30 15:07:54.434918"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:07:54.436293"], ["updated_at", "2015-10-30 15:07:54.436293"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.438853"], ["updated_at", "2015-10-30 15:07:54.438853"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.440715"], ["updated_at", "2015-10-30 15:07:54.440715"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.442606"], ["updated_at", "2015-10-30 15:07:54.442606"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:54.447813"], ["updated_at", "2015-10-30 15:07:54.447813"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 15:07:54.450157"], ["updated_at", "2015-10-30 15:07:54.450157"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.453157"], ["updated_at", "2015-10-30 15:07:54.453157"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.458144"], ["updated_at", "2015-10-30 15:07:54.458144"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 15:07:54.464451"], ["updated_at", "2015-10-30 15:07:54.464451"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.468616"], ["updated_at", "2015-10-30 15:07:54.468616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:07:54.470075"], ["updated_at", "2015-10-30 15:07:54.470075"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.471698"], ["updated_at", "2015-10-30 15:07:54.471698"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 15:07:54.475387"], ["updated_at", "2015-10-30 15:07:54.475387"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.478195"], ["updated_at", "2015-10-30 15:07:54.478195"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.480851"], ["updated_at", "2015-10-30 15:07:54.480851"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:07:54.485792"], ["updated_at", "2015-10-30 15:07:54.485792"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.488024"], ["updated_at", "2015-10-30 15:07:54.488024"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.490381"], ["updated_at", "2015-10-30 15:07:54.490381"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.3ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 15:07:54.496487"], ["updated_at", "2015-10-30 15:07:54.496487"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.499657"], ["updated_at", "2015-10-30 15:07:54.499657"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.503001"], ["updated_at", "2015-10-30 15:07:54.503001"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 15:07:54.520439"], ["updated_at", "2015-10-30 15:07:54.520439"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.526623"], ["updated_at", "2015-10-30 15:07:54.526623"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.533409"], ["updated_at", "2015-10-30 15:07:54.533409"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 15:07:54.538405"], ["updated_at", "2015-10-30 15:07:54.538405"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.541862"], ["updated_at", "2015-10-30 15:07:54.541862"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.548745"], ["updated_at", "2015-10-30 15:07:54.548745"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.555030"], ["updated_at", "2015-10-30 15:07:54.555030"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.567908"], ["updated_at", "2015-10-30 15:07:54.567908"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:07:54.570291"], ["updated_at", "2015-10-30 15:07:54.570291"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.573303"], ["updated_at", "2015-10-30 15:07:54.573303"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 15:07:54.575652"], ["updated_at", "2015-10-30 15:07:54.575652"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.578490"], ["updated_at", "2015-10-30 15:07:54.578490"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:07:54.579816"], ["updated_at", "2015-10-30 15:07:54.579816"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.583179"], ["updated_at", "2015-10-30 15:07:54.583179"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 15:07:54.584578"], ["updated_at", "2015-10-30 15:07:54.584578"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.586596"], ["updated_at", "2015-10-30 15:07:54.586596"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 15:07:54.590072"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 15:07:54.593660"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 15:07:54.601017"], ["id", 4]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.611373"], ["updated_at", "2015-10-30 15:07:54.611373"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 14.4ms Sent mail to user27@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563387ca9a441_7ed83ffa2a4521d0819a6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:54.633614"], ["updated_at", "2015-10-30 15:07:54.633614"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:54.635289"], ["updated_at", "2015-10-30 15:07:54.635289"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.636714"], ["updated_at", "2015-10-30 15:07:54.636714"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.5ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563387ca9c239_7ed83ffa2a4521d08203f@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.644165"], ["updated_at", "2015-10-30 15:07:54.644165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563387ca9dfe3_7ed83ffa2a4521d082142@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:54.648685"], ["updated_at", "2015-10-30 15:07:54.648685"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:54.650228"], ["updated_at", "2015-10-30 15:07:54.650228"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.651566"], ["updated_at", "2015-10-30 15:07:54.651566"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563387ca9fbc1_7ed83ffa2a4521d08222b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.657907"], ["updated_at", "2015-10-30 15:07:54.657907"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563387caa1444_7ed83ffa2a4521d0823b7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:54.662509"], ["updated_at", "2015-10-30 15:07:54.662509"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:07:54.664433"], ["updated_at", "2015-10-30 15:07:54.664433"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.665979"], ["updated_at", "2015-10-30 15:07:54.665979"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:07:54 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563387caa350c_7ed83ffa2a4521d08241c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (8.0ms)[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.1ms)[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[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 15:07:54.686834"], ["updated_at", "2015-10-30 15:07:54.686834"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:07:54.689260"], ["updated_at", "2015-10-30 15:07:54.689260"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.691659"], ["updated_at", "2015-10-30 15:07:54.691659"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.694647"], ["updated_at", "2015-10-30 15:07:54.694647"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:07:54.696475"], ["updated_at", "2015-10-30 15:07:54.696475"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 15:07:54.703955"], ["updated_at", "2015-10-30 15:07:54.703955"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:07:54.706155"], ["updated_at", "2015-10-30 15:07:54.706155"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:07:54.708945"], ["updated_at", "2015-10-30 15:07:54.708945"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:07:54.721908"], ["updated_at", "2015-10-30 15:07:54.721908"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 15:07:54.729056"], ["updated_at", "2015-10-30 15:07:54.729056"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:07:54.736261"], ["updated_at", "2015-10-30 15:07:54.736261"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 15:09:58.167520"], ["updated_at", "2015-10-30 15:09:58.167520"]] [1m[36m (0.6ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.184316"], ["updated_at", "2015-10-30 15:09:58.184316"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.203993"], ["updated_at", "2015-10-30 15:09:58.203993"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.230778"], ["updated_at", "2015-10-30 15:09:58.230778"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.240219"], ["updated_at", "2015-10-30 15:09:58.240219"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 10.8ms | ActiveRecord: 0.0ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:09:58.278055"], ["updated_at", "2015-10-30 15:09:58.278055"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.280868"], ["updated_at", "2015-10-30 15:09:58.280868"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.283937"], ["updated_at", "2015-10-30 15:09:58.283937"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.287027"], ["updated_at", "2015-10-30 15:09:58.287027"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.288824"], ["updated_at", "2015-10-30 15:09:58.288824"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.8ms) Rendered wupee/api/notifications/index.json.jbuilder (11.8ms) Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:09:58.320235"], ["updated_at", "2015-10-30 15:09:58.320235"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.325900"], ["updated_at", "2015-10-30 15:09:58.325900"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.332824"], ["updated_at", "2015-10-30 15:09:58.332824"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.336125"], ["updated_at", "2015-10-30 15:09:58.336125"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.337923"], ["updated_at", "2015-10-30 15:09:58.337923"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.0ms) Rendered wupee/api/notifications/show.json.jbuilder (3.3ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:09:58.352691"], ["updated_at", "2015-10-30 15:09:58.352691"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.355682"], ["updated_at", "2015-10-30 15:09:58.355682"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.359367"], ["updated_at", "2015-10-30 15:09:58.359367"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.363234"], ["updated_at", "2015-10-30 15:09:58.363234"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.366639"], ["updated_at", "2015-10-30 15:09:58.366639"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.7ms) Rendered wupee/api/notifications/show.json.jbuilder (2.2ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 15:09:58.381165"], ["updated_at", "2015-10-30 15:09:58.381165"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.383439"], ["updated_at", "2015-10-30 15:09:58.383439"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.386460"], ["updated_at", "2015-10-30 15:09:58.386460"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.391138"], ["updated_at", "2015-10-30 15:09:58.391138"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.393344"], ["updated_at", "2015-10-30 15:09:58.393344"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:09:58.563526"], ["updated_at", "2015-10-30 15:09:58.563526"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:09:58.567805"], ["updated_at", "2015-10-30 15:09:58.567805"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.572176"], ["updated_at", "2015-10-30 15:09:58.572176"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.573945"], ["updated_at", "2015-10-30 15:09:58.573945"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.575892"], ["updated_at", "2015-10-30 15:09:58.575892"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:09:58.582918"], ["updated_at", "2015-10-30 15:09:58.582918"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:09:58.585127"], ["updated_at", "2015-10-30 15:09:58.585127"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.588192"], ["updated_at", "2015-10-30 15:09:58.588192"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.590011"], ["updated_at", "2015-10-30 15:09:58.590011"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.591779"], ["updated_at", "2015-10-30 15:09:58.591779"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 18.3ms Sent mail to user7@sleede.com (8.6ms) Date: Fri, 30 Oct 2015 16:09:58 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5633884696e34_7efd3fd3ec4601e0908b1@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:09:58.625182"], ["updated_at", "2015-10-30 15:09:58.625182"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 15:09:58.632588"], ["updated_at", "2015-10-30 15:09:58.632588"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.640558"], ["updated_at", "2015-10-30 15:09:58.640558"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.642345"], ["updated_at", "2015-10-30 15:09:58.642345"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.643919"], ["updated_at", "2015-10-30 15:09:58.643919"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.0ms Sent mail to user8@sleede.com (1.7ms) Date: Fri, 30 Oct 2015 16:09:58 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563388469e2f8_7efd3fd3ec4601e090912@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:09:58.652901"], ["updated_at", "2015-10-30 15:09:58.652901"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:09:58.655743"], ["updated_at", "2015-10-30 15:09:58.655743"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.658934"], ["updated_at", "2015-10-30 15:09:58.658934"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.660730"], ["updated_at", "2015-10-30 15:09:58.660730"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.662478"], ["updated_at", "2015-10-30 15:09:58.662478"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.9ms Sent mail to user9@sleede.com (2.7ms) Date: Fri, 30 Oct 2015 16:09:58 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56338846a37e3_7efd3fd3ec4601e0910f9@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:09:58.675640"], ["updated_at", "2015-10-30 15:09:58.675640"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 15:09:58.681399"], ["updated_at", "2015-10-30 15:09:58.681399"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.689767"], ["updated_at", "2015-10-30 15:09:58.689767"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.691688"], ["updated_at", "2015-10-30 15:09:58.691688"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.693388"], ["updated_at", "2015-10-30 15:09:58.693388"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.6ms Sent mail to user10@sleede.com (2.3ms) Date: Fri, 30 Oct 2015 16:09:58 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56338846aaa7a_7efd3fd3ec4601e0911df@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.702969"], ["updated_at", "2015-10-30 15:09:58.702969"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:09:58.705091"], ["updated_at", "2015-10-30 15:09:58.705091"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.708121"], ["updated_at", "2015-10-30 15:09:58.708121"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.710674"], ["updated_at", "2015-10-30 15:09:58.710674"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.713230"], ["updated_at", "2015-10-30 15:09:58.713230"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.726525"], ["updated_at", "2015-10-30 15:09:58.726525"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:09:58.728771"], ["updated_at", "2015-10-30 15:09:58.728771"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.733485"], ["updated_at", "2015-10-30 15:09:58.733485"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.743588"], ["updated_at", "2015-10-30 15:09:58.743588"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:09:58.748187"], ["updated_at", "2015-10-30 15:09:58.748187"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.751279"], ["updated_at", "2015-10-30 15:09:58.751279"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.752876"], ["updated_at", "2015-10-30 15:09:58.752876"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.755113"], ["updated_at", "2015-10-30 15:09:58.755113"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.758867"], ["updated_at", "2015-10-30 15:09:58.758867"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:09:58.760638"], ["updated_at", "2015-10-30 15:09:58.760638"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.764766"], ["updated_at", "2015-10-30 15:09:58.764766"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.768658"], ["updated_at", "2015-10-30 15:09:58.768658"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:09:58.770502"], ["updated_at", "2015-10-30 15:09:58.770502"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.773324"], ["updated_at", "2015-10-30 15:09:58.773324"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.775245"], ["updated_at", "2015-10-30 15:09:58.775245"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.777228"], ["updated_at", "2015-10-30 15:09:58.777228"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.782929"], ["updated_at", "2015-10-30 15:09:58.782929"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:09:58.785428"], ["updated_at", "2015-10-30 15:09:58.785428"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.788561"], ["updated_at", "2015-10-30 15:09:58.788561"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.791747"], ["updated_at", "2015-10-30 15:09:58.791747"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.807473"], ["updated_at", "2015-10-30 15:09:58.807473"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 15:09:58.809466"], ["updated_at", "2015-10-30 15:09:58.809466"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.812332"], ["updated_at", "2015-10-30 15:09:58.812332"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.816392"], ["updated_at", "2015-10-30 15:09:58.816392"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.823730"], ["updated_at", "2015-10-30 15:09:58.823730"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:09:58.826004"], ["updated_at", "2015-10-30 15:09:58.826004"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.828706"], ["updated_at", "2015-10-30 15:09:58.828706"]] [1m[36m (0.3ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.837106"], ["updated_at", "2015-10-30 15:09:58.837106"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:09:58.839829"], ["updated_at", "2015-10-30 15:09:58.839829"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.843036"], ["updated_at", "2015-10-30 15:09:58.843036"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:58.849632"], ["updated_at", "2015-10-30 15:09:58.849632"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.856135"], ["updated_at", "2015-10-30 15:09:58.856135"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.860870"], ["updated_at", "2015-10-30 15:09:58.860870"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 15:09:58.863173"], ["updated_at", "2015-10-30 15:09:58.863173"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.867690"], ["updated_at", "2015-10-30 15:09:58.867690"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.870890"], ["updated_at", "2015-10-30 15:09:58.870890"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 15:09:58.872862"], ["updated_at", "2015-10-30 15:09:58.872862"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.875682"], ["updated_at", "2015-10-30 15:09:58.875682"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:09:58.877489"], ["updated_at", "2015-10-30 15:09:58.877489"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:58.879832"], ["updated_at", "2015-10-30 15:09:58.879832"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 15:09:58.884142"], ["updated_at", "2015-10-30 15:09:58.884142"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.886873"], ["updated_at", "2015-10-30 15:09:58.886873"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.889882"], ["updated_at", "2015-10-30 15:09:58.889882"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:09:58.898787"], ["updated_at", "2015-10-30 15:09:58.898787"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.904633"], ["updated_at", "2015-10-30 15:09:58.904633"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.908409"], ["updated_at", "2015-10-30 15:09:58.908409"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 15:09:58.921548"], ["updated_at", "2015-10-30 15:09:58.921548"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.925115"], ["updated_at", "2015-10-30 15:09:58.925115"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.928941"], ["updated_at", "2015-10-30 15:09:58.928941"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 15:09:58.938587"], ["updated_at", "2015-10-30 15:09:58.938587"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.941511"], ["updated_at", "2015-10-30 15:09:58.941511"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.944307"], ["updated_at", "2015-10-30 15:09:58.944307"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 15:09:58.950666"], ["updated_at", "2015-10-30 15:09:58.950666"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.955528"], ["updated_at", "2015-10-30 15:09:58.955528"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:58.959472"], ["updated_at", "2015-10-30 15:09:58.959472"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.973158"], ["updated_at", "2015-10-30 15:09:58.973158"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:58.977803"], ["updated_at", "2015-10-30 15:09:58.977803"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:09:58.980398"], ["updated_at", "2015-10-30 15:09:58.980398"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.984002"], ["updated_at", "2015-10-30 15:09:58.984002"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 15:09:58.985554"], ["updated_at", "2015-10-30 15:09:58.985554"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.988573"], ["updated_at", "2015-10-30 15:09:58.988573"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:09:58.990232"], ["updated_at", "2015-10-30 15:09:58.990232"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.992852"], ["updated_at", "2015-10-30 15:09:58.992852"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 15:09:58.994368"], ["updated_at", "2015-10-30 15:09:58.994368"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:58.996895"], ["updated_at", "2015-10-30 15:09:58.996895"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 15:09:59.006753"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 15:09:59.013039"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 15:09:59.017157"], ["id", 4]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.5ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:59.034263"], ["updated_at", "2015-10-30 15:09:59.034263"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 11.1ms Sent mail to user27@sleede.com (1.7ms) Date: Fri, 30 Oct 2015 16:09:59 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56338847b9b4_7efd3fd3ec4601e091262@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:09:59.049554"], ["updated_at", "2015-10-30 15:09:59.049554"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:09:59.051403"], ["updated_at", "2015-10-30 15:09:59.051403"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:59.053180"], ["updated_at", "2015-10-30 15:09:59.053180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:09:59 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56338847db1a_7efd3fd3ec4601e0913fd@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:59.060198"], ["updated_at", "2015-10-30 15:09:59.060198"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 2.9ms Sent mail to user27@sleede.com (2.1ms) Date: Fri, 30 Oct 2015 16:09:59 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56338847100a6_7efd3fd3ec4601e091431@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:09:59.067611"], ["updated_at", "2015-10-30 15:09:59.067611"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:09:59.069302"], ["updated_at", "2015-10-30 15:09:59.069302"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:59.070789"], ["updated_at", "2015-10-30 15:09:59.070789"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:09:59 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633884712086_7efd3fd3ec4601e09155@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:59.077991"], ["updated_at", "2015-10-30 15:09:59.077991"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user27@sleede.com (1.6ms) Date: Fri, 30 Oct 2015 16:09:59 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5633884713ebd_7efd3fd3ec4601e09169c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:09:59.083417"], ["updated_at", "2015-10-30 15:09:59.083417"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:09:59.085243"], ["updated_at", "2015-10-30 15:09:59.085243"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:59.086868"], ["updated_at", "2015-10-30 15:09:59.086868"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:09:59 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5633884715f7e_7efd3fd3ec4601e09173a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 15:09:59.101533"], ["updated_at", "2015-10-30 15:09:59.101533"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:09:59.104456"], ["updated_at", "2015-10-30 15:09:59.104456"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:59.107211"], ["updated_at", "2015-10-30 15:09:59.107211"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:59.109670"], ["updated_at", "2015-10-30 15:09:59.109670"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:09:59.111319"], ["updated_at", "2015-10-30 15:09:59.111319"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 15:09:59.119951"], ["updated_at", "2015-10-30 15:09:59.119951"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:09:59.122495"], ["updated_at", "2015-10-30 15:09:59.122495"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:09:59.125749"], ["updated_at", "2015-10-30 15:09:59.125749"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:09:59.140188"], ["updated_at", "2015-10-30 15:09:59.140188"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 15:09:59.142804"], ["updated_at", "2015-10-30 15:09:59.142804"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:09:59.153792"], ["updated_at", "2015-10-30 15:09:59.153792"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-10-30 15:23:43.561170"], ["updated_at", "2015-10-30 15:23:43.561170"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:43.577517"], ["updated_at", "2015-10-30 15:23:43.577517"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:43.599262"], ["updated_at", "2015-10-30 15:23:43.599262"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:43.617031"], ["updated_at", "2015-10-30 15:23:43.617031"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:43.620832"], ["updated_at", "2015-10-30 15:23:43.620832"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 11.6ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-10-30 15:23:43.659545"], ["updated_at", "2015-10-30 15:23:43.659545"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:43.661873"], ["updated_at", "2015-10-30 15:23:43.661873"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:43.664193"], ["updated_at", "2015-10-30 15:23:43.664193"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:43.666512"], ["updated_at", "2015-10-30 15:23:43.666512"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:43.668202"], ["updated_at", "2015-10-30 15:23:43.668202"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.4ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered wupee/api/notifications/_notification.json.jbuilder (7.6ms) Rendered wupee/api/notifications/index.json.jbuilder (16.3ms) Completed 200 OK in 19ms (Views: 16.4ms | ActiveRecord: 0.7ms) [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-10-30 15:23:43.709790"], ["updated_at", "2015-10-30 15:23:43.709790"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:43.717456"], ["updated_at", "2015-10-30 15:23:43.717456"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:43.720383"], ["updated_at", "2015-10-30 15:23:43.720383"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:43.723080"], ["updated_at", "2015-10-30 15:23:43.723080"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:43.725167"], ["updated_at", "2015-10-30 15:23:43.725167"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.5ms) Rendered wupee/api/notifications/show.json.jbuilder (2.7ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms) [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-10-30 15:23:43.737692"], ["updated_at", "2015-10-30 15:23:43.737692"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:43.739631"], ["updated_at", "2015-10-30 15:23:43.739631"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:43.742835"], ["updated_at", "2015-10-30 15:23:43.742835"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:43.748531"], ["updated_at", "2015-10-30 15:23:43.748531"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:43.750521"], ["updated_at", "2015-10-30 15:23:43.750521"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.4ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.9ms) Rendered wupee/api/notifications/show.json.jbuilder (2.5ms) Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.8ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-10-30 15:23:43.772206"], ["updated_at", "2015-10-30 15:23:43.772206"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:43.774543"], ["updated_at", "2015-10-30 15:23:43.774543"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:43.777681"], ["updated_at", "2015-10-30 15:23:43.777681"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:43.780909"], ["updated_at", "2015-10-30 15:23:43.780909"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:43.782635"], ["updated_at", "2015-10-30 15:23:43.782635"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:23:43.940895"], ["updated_at", "2015-10-30 15:23:43.940895"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-10-30 15:23:43.944452"], ["updated_at", "2015-10-30 15:23:43.944452"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:43.949216"], ["updated_at", "2015-10-30 15:23:43.949216"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:43.951050"], ["updated_at", "2015-10-30 15:23:43.951050"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:43.952513"], ["updated_at", "2015-10-30 15:23:43.952513"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:23:43.959002"], ["updated_at", "2015-10-30 15:23:43.959002"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-10-30 15:23:43.961331"], ["updated_at", "2015-10-30 15:23:43.961331"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:43.964018"], ["updated_at", "2015-10-30 15:23:43.964018"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:43.965484"], ["updated_at", "2015-10-30 15:23:43.965484"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:43.967114"], ["updated_at", "2015-10-30 15:23:43.967114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 18.1ms Sent mail to user7@sleede.com (8.4ms) Date: Fri, 30 Oct 2015 16:23:43 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <56338b7ff212c_80333ffb11c601dc70963@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:23:44.000379"], ["updated_at", "2015-10-30 15:23:44.000379"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-10-30 15:23:44.002696"], ["updated_at", "2015-10-30 15:23:44.002696"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.008614"], ["updated_at", "2015-10-30 15:23:44.008614"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:44.014916"], ["updated_at", "2015-10-30 15:23:44.014916"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.017191"], ["updated_at", "2015-10-30 15:23:44.017191"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user8@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <56338b8050a7_80333ffb11c601dc710bc@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:23:44.024896"], ["updated_at", "2015-10-30 15:23:44.024896"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-10-30 15:23:44.027122"], ["updated_at", "2015-10-30 15:23:44.027122"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.030912"], ["updated_at", "2015-10-30 15:23:44.030912"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.032927"], ["updated_at", "2015-10-30 15:23:44.032927"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.035267"], ["updated_at", "2015-10-30 15:23:44.035267"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56338b80969a_80333ffb11c601dc711b8@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-10-30 15:23:44.044837"], ["updated_at", "2015-10-30 15:23:44.044837"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-10-30 15:23:44.047994"], ["updated_at", "2015-10-30 15:23:44.047994"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.052267"], ["updated_at", "2015-10-30 15:23:44.052267"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:44.054861"], ["updated_at", "2015-10-30 15:23:44.054861"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.064241"], ["updated_at", "2015-10-30 15:23:44.064241"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user10@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56338b8010b0e_80333ffb11c601dc7126f@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.072182"], ["updated_at", "2015-10-30 15:23:44.072182"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-10-30 15:23:44.074742"], ["updated_at", "2015-10-30 15:23:44.074742"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.077935"], ["updated_at", "2015-10-30 15:23:44.077935"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.080459"], ["updated_at", "2015-10-30 15:23:44.080459"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.082382"], ["updated_at", "2015-10-30 15:23:44.082382"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.092651"], ["updated_at", "2015-10-30 15:23:44.092651"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-10-30 15:23:44.094935"], ["updated_at", "2015-10-30 15:23:44.094935"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.097931"], ["updated_at", "2015-10-30 15:23:44.097931"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.101247"], ["updated_at", "2015-10-30 15:23:44.101247"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-10-30 15:23:44.104252"], ["updated_at", "2015-10-30 15:23:44.104252"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.111237"], ["updated_at", "2015-10-30 15:23:44.111237"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.115036"], ["updated_at", "2015-10-30 15:23:44.115036"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.117917"], ["updated_at", "2015-10-30 15:23:44.117917"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.124451"], ["updated_at", "2015-10-30 15:23:44.124451"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-10-30 15:23:44.131408"], ["updated_at", "2015-10-30 15:23:44.131408"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.135195"], ["updated_at", "2015-10-30 15:23:44.135195"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.138243"], ["updated_at", "2015-10-30 15:23:44.138243"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-10-30 15:23:44.140208"], ["updated_at", "2015-10-30 15:23:44.140208"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.143452"], ["updated_at", "2015-10-30 15:23:44.143452"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.145384"], ["updated_at", "2015-10-30 15:23:44.145384"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.147270"], ["updated_at", "2015-10-30 15:23:44.147270"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.150688"], ["updated_at", "2015-10-30 15:23:44.150688"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-10-30 15:23:44.152192"], ["updated_at", "2015-10-30 15:23:44.152192"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.154264"], ["updated_at", "2015-10-30 15:23:44.154264"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.156931"], ["updated_at", "2015-10-30 15:23:44.156931"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:44.164742"], ["updated_at", "2015-10-30 15:23:44.164742"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-10-30 15:23:44.167008"], ["updated_at", "2015-10-30 15:23:44.167008"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.169622"], ["updated_at", "2015-10-30 15:23:44.169622"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.177662"], ["updated_at", "2015-10-30 15:23:44.177662"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.185387"], ["updated_at", "2015-10-30 15:23:44.185387"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-10-30 15:23:44.186993"], ["updated_at", "2015-10-30 15:23:44.186993"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.189392"], ["updated_at", "2015-10-30 15:23:44.189392"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.192382"], ["updated_at", "2015-10-30 15:23:44.192382"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-10-30 15:23:44.194120"], ["updated_at", "2015-10-30 15:23:44.194120"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.196992"], ["updated_at", "2015-10-30 15:23:44.196992"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.198603"], ["updated_at", "2015-10-30 15:23:44.198603"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.200488"], ["updated_at", "2015-10-30 15:23:44.200488"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:44.204987"], ["updated_at", "2015-10-30 15:23:44.204987"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-10-30 15:23:44.206820"], ["updated_at", "2015-10-30 15:23:44.206820"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.212029"], ["updated_at", "2015-10-30 15:23:44.212029"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.216015"], ["updated_at", "2015-10-30 15:23:44.216015"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-10-30 15:23:44.217891"], ["updated_at", "2015-10-30 15:23:44.217891"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.220200"], ["updated_at", "2015-10-30 15:23:44.220200"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-10-30 15:23:44.223316"], ["updated_at", "2015-10-30 15:23:44.223316"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.231438"], ["updated_at", "2015-10-30 15:23:44.231438"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-10-30 15:23:44.235586"], ["updated_at", "2015-10-30 15:23:44.235586"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.237998"], ["updated_at", "2015-10-30 15:23:44.237998"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.240601"], ["updated_at", "2015-10-30 15:23:44.240601"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-10-30 15:23:44.245941"], ["updated_at", "2015-10-30 15:23:44.245941"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.248402"], ["updated_at", "2015-10-30 15:23:44.248402"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.250794"], ["updated_at", "2015-10-30 15:23:44.250794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-10-30 15:23:44.255117"], ["updated_at", "2015-10-30 15:23:44.255117"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.257446"], ["updated_at", "2015-10-30 15:23:44.257446"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.260074"], ["updated_at", "2015-10-30 15:23:44.260074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-10-30 15:23:44.265637"], ["updated_at", "2015-10-30 15:23:44.265637"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.268106"], ["updated_at", "2015-10-30 15:23:44.268106"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.273217"], ["updated_at", "2015-10-30 15:23:44.273217"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-10-30 15:23:44.277993"], ["updated_at", "2015-10-30 15:23:44.277993"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.280750"], ["updated_at", "2015-10-30 15:23:44.280750"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.289989"], ["updated_at", "2015-10-30 15:23:44.289989"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.295950"], ["updated_at", "2015-10-30 15:23:44.295950"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.299821"], ["updated_at", "2015-10-30 15:23:44.299821"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-10-30 15:23:44.301500"], ["updated_at", "2015-10-30 15:23:44.301500"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.304012"], ["updated_at", "2015-10-30 15:23:44.304012"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-10-30 15:23:44.305495"], ["updated_at", "2015-10-30 15:23:44.305495"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.307594"], ["updated_at", "2015-10-30 15:23:44.307594"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-10-30 15:23:44.309281"], ["updated_at", "2015-10-30 15:23:44.309281"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.311836"], ["updated_at", "2015-10-30 15:23:44.311836"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-10-30 15:23:44.313171"], ["updated_at", "2015-10-30 15:23:44.313171"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.315121"], ["updated_at", "2015-10-30 15:23:44.315121"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-10-30 15:23:44.319301"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-10-30 15:23:44.325311"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-10-30 15:23:44.328928"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.339734"], ["updated_at", "2015-10-30 15:23:44.339734"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 10.0ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56338b80563f9_80333ffb11c601dc713e7@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:23:44.354890"], ["updated_at", "2015-10-30 15:23:44.354890"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:23:44.356550"], ["updated_at", "2015-10-30 15:23:44.356550"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.357861"], ["updated_at", "2015-10-30 15:23:44.357861"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user30@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56338b8058406_80333ffb11c601dc7147b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.365349"], ["updated_at", "2015-10-30 15:23:44.365349"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user27@sleede.com (1.4ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56338b8059f74_80333ffb11c601dc7159e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:23:44.370088"], ["updated_at", "2015-10-30 15:23:44.370088"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:23:44.371593"], ["updated_at", "2015-10-30 15:23:44.371593"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.373473"], ["updated_at", "2015-10-30 15:23:44.373473"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56338b805be10_80333ffb11c601dc716a6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.381377"], ["updated_at", "2015-10-30 15:23:44.381377"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user27@sleede.com (1.3ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56338b805dfb5_80333ffb11c601dc717e2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:23:44.386465"], ["updated_at", "2015-10-30 15:23:44.386465"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-10-30 15:23:44.387965"], ["updated_at", "2015-10-30 15:23:44.387965"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.389293"], ["updated_at", "2015-10-30 15:23:44.389293"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.2ms) Date: Fri, 30 Oct 2015 16:23:44 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56338b805fbe1_80333ffb11c601dc718ef@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.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.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-10-30 15:23:44.401126"], ["updated_at", "2015-10-30 15:23:44.401126"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-10-30 15:23:44.403404"], ["updated_at", "2015-10-30 15:23:44.403404"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.405972"], ["updated_at", "2015-10-30 15:23:44.405972"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.408343"], ["updated_at", "2015-10-30 15:23:44.408343"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-10-30 15:23:44.410418"], ["updated_at", "2015-10-30 15:23:44.410418"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-10-30 15:23:44.418492"], ["updated_at", "2015-10-30 15:23:44.418492"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-10-30 15:23:44.420857"], ["updated_at", "2015-10-30 15:23:44.420857"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-10-30 15:23:44.423546"], ["updated_at", "2015-10-30 15:23:44.423546"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-10-30 15:23:44.436098"], ["updated_at", "2015-10-30 15:23:44.436098"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-10-30 15:23:44.441911"], ["updated_at", "2015-10-30 15:23:44.441911"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-10-30 15:23:44.452232"], ["updated_at", "2015-10-30 15:23:44.452232"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-02 08:50:39.783733"], ["updated_at", "2015-11-02 08:50:39.783733"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:39.800063"], ["updated_at", "2015-11-02 08:50:39.800063"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.5ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:39.824635"], ["updated_at", "2015-11-02 08:50:39.824635"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:39.840323"], ["updated_at", "2015-11-02 08:50:39.840323"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:39.844417"], ["updated_at", "2015-11-02 08:50:39.844417"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 25ms (Views: 17.1ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:50:39.890160"], ["updated_at", "2015-11-02 08:50:39.890160"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:39.894042"], ["updated_at", "2015-11-02 08:50:39.894042"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:39.897899"], ["updated_at", "2015-11-02 08:50:39.897899"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:39.900927"], ["updated_at", "2015-11-02 08:50:39.900927"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:39.903543"], ["updated_at", "2015-11-02 08:50:39.903543"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered wupee/api/notifications/_notification.json.jbuilder (5.0ms) Rendered wupee/api/notifications/index.json.jbuilder (15.1ms) Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:50:39.939700"], ["updated_at", "2015-11-02 08:50:39.939700"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:39.942462"], ["updated_at", "2015-11-02 08:50:39.942462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:39.944906"], ["updated_at", "2015-11-02 08:50:39.944906"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:39.948762"], ["updated_at", "2015-11-02 08:50:39.948762"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:39.950521"], ["updated_at", "2015-11-02 08:50:39.950521"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.0ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.7ms) Rendered wupee/api/notifications/show.json.jbuilder (2.8ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:50:39.988086"], ["updated_at", "2015-11-02 08:50:39.988086"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:39.990234"], ["updated_at", "2015-11-02 08:50:39.990234"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:39.992543"], ["updated_at", "2015-11-02 08:50:39.992543"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:39.995402"], ["updated_at", "2015-11-02 08:50:39.995402"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:39.996941"], ["updated_at", "2015-11-02 08:50:39.996941"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.4ms) Rendered wupee/api/notifications/show.json.jbuilder (2.0ms) Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-02 08:50:40.008886"], ["updated_at", "2015-11-02 08:50:40.008886"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.010882"], ["updated_at", "2015-11-02 08:50:40.010882"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.013026"], ["updated_at", "2015-11-02 08:50:40.013026"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.015291"], ["updated_at", "2015-11-02 08:50:40.015291"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.016754"], ["updated_at", "2015-11-02 08:50:40.016754"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:50:40.198649"], ["updated_at", "2015-11-02 08:50:40.198649"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:50:40.202531"], ["updated_at", "2015-11-02 08:50:40.202531"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.207927"], ["updated_at", "2015-11-02 08:50:40.207927"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.210863"], ["updated_at", "2015-11-02 08:50:40.210863"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.213773"], ["updated_at", "2015-11-02 08:50:40.213773"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:50:40.222534"], ["updated_at", "2015-11-02 08:50:40.222534"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:50:40.226489"], ["updated_at", "2015-11-02 08:50:40.226489"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.232837"], ["updated_at", "2015-11-02 08:50:40.232837"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.235897"], ["updated_at", "2015-11-02 08:50:40.235897"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.238852"], ["updated_at", "2015-11-02 08:50:40.238852"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.7ms) [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 24.6ms Sent mail to user7@sleede.com (8.8ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563723e042d48_148513fe6dd4521e0452a7@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:50:40.282242"], ["updated_at", "2015-11-02 08:50:40.282242"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-02 08:50:40.285893"], ["updated_at", "2015-11-02 08:50:40.285893"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.290794"], ["updated_at", "2015-11-02 08:50:40.290794"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:40.293772"], ["updated_at", "2015-11-02 08:50:40.293772"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.296403"], ["updated_at", "2015-11-02 08:50:40.296403"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user8@sleede.com (1.5ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563723e0495cd_148513fe6dd4521e0453c0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:50:40.305506"], ["updated_at", "2015-11-02 08:50:40.305506"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:50:40.308329"], ["updated_at", "2015-11-02 08:50:40.308329"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.311891"], ["updated_at", "2015-11-02 08:50:40.311891"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.313979"], ["updated_at", "2015-11-02 08:50:40.313979"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.315529"], ["updated_at", "2015-11-02 08:50:40.315529"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563723e04dcfe_148513fe6dd4521e045499@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [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[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:50:40.322747"], ["updated_at", "2015-11-02 08:50:40.322747"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-02 08:50:40.324854"], ["updated_at", "2015-11-02 08:50:40.324854"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.327538"], ["updated_at", "2015-11-02 08:50:40.327538"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:40.329175"], ["updated_at", "2015-11-02 08:50:40.329175"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.330770"], ["updated_at", "2015-11-02 08:50:40.330770"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (1.3ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563723e051831_148513fe6dd4521e0455b0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.337302"], ["updated_at", "2015-11-02 08:50:40.337302"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:50:40.339507"], ["updated_at", "2015-11-02 08:50:40.339507"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.342323"], ["updated_at", "2015-11-02 08:50:40.342323"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.344703"], ["updated_at", "2015-11-02 08:50:40.344703"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.346879"], ["updated_at", "2015-11-02 08:50:40.346879"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.356402"], ["updated_at", "2015-11-02 08:50:40.356402"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:50:40.357952"], ["updated_at", "2015-11-02 08:50:40.357952"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.359998"], ["updated_at", "2015-11-02 08:50:40.359998"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.362146"], ["updated_at", "2015-11-02 08:50:40.362146"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:50:40.363568"], ["updated_at", "2015-11-02 08:50:40.363568"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.366145"], ["updated_at", "2015-11-02 08:50:40.366145"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.367646"], ["updated_at", "2015-11-02 08:50:40.367646"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.369305"], ["updated_at", "2015-11-02 08:50:40.369305"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.372880"], ["updated_at", "2015-11-02 08:50:40.372880"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:50:40.374590"], ["updated_at", "2015-11-02 08:50:40.374590"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.376943"], ["updated_at", "2015-11-02 08:50:40.376943"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.379249"], ["updated_at", "2015-11-02 08:50:40.379249"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:50:40.380841"], ["updated_at", "2015-11-02 08:50:40.380841"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.383301"], ["updated_at", "2015-11-02 08:50:40.383301"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.384689"], ["updated_at", "2015-11-02 08:50:40.384689"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.386301"], ["updated_at", "2015-11-02 08:50:40.386301"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.389825"], ["updated_at", "2015-11-02 08:50:40.389825"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:50:40.391333"], ["updated_at", "2015-11-02 08:50:40.391333"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.393343"], ["updated_at", "2015-11-02 08:50:40.393343"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.395432"], ["updated_at", "2015-11-02 08:50:40.395432"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:40.400859"], ["updated_at", "2015-11-02 08:50:40.400859"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-02 08:50:40.402441"], ["updated_at", "2015-11-02 08:50:40.402441"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.404528"], ["updated_at", "2015-11-02 08:50:40.404528"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.407012"], ["updated_at", "2015-11-02 08:50:40.407012"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.412562"], ["updated_at", "2015-11-02 08:50:40.412562"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:50:40.414328"], ["updated_at", "2015-11-02 08:50:40.414328"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.416606"], ["updated_at", "2015-11-02 08:50:40.416606"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.418916"], ["updated_at", "2015-11-02 08:50:40.418916"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:50:40.420327"], ["updated_at", "2015-11-02 08:50:40.420327"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.423002"], ["updated_at", "2015-11-02 08:50:40.423002"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.424915"], ["updated_at", "2015-11-02 08:50:40.424915"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.427534"], ["updated_at", "2015-11-02 08:50:40.427534"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:40.433789"], ["updated_at", "2015-11-02 08:50:40.433789"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-02 08:50:40.435846"], ["updated_at", "2015-11-02 08:50:40.435846"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.438099"], ["updated_at", "2015-11-02 08:50:40.438099"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.440369"], ["updated_at", "2015-11-02 08:50:40.440369"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-02 08:50:40.442555"], ["updated_at", "2015-11-02 08:50:40.442555"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.445152"], ["updated_at", "2015-11-02 08:50:40.445152"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:50:40.446607"], ["updated_at", "2015-11-02 08:50:40.446607"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.449204"], ["updated_at", "2015-11-02 08:50:40.449204"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-02 08:50:40.454796"], ["updated_at", "2015-11-02 08:50:40.454796"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.457601"], ["updated_at", "2015-11-02 08:50:40.457601"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.460186"], ["updated_at", "2015-11-02 08:50:40.460186"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [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.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:50:40.464971"], ["updated_at", "2015-11-02 08:50:40.464971"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.467235"], ["updated_at", "2015-11-02 08:50:40.467235"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.469707"], ["updated_at", "2015-11-02 08:50:40.469707"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-02 08:50:40.473944"], ["updated_at", "2015-11-02 08:50:40.473944"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.476710"], ["updated_at", "2015-11-02 08:50:40.476710"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.479143"], ["updated_at", "2015-11-02 08:50:40.479143"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) 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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-02 08:50:40.484625"], ["updated_at", "2015-11-02 08:50:40.484625"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.487088"], ["updated_at", "2015-11-02 08:50:40.487088"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.489551"], ["updated_at", "2015-11-02 08:50:40.489551"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-02 08:50:40.492372"], ["updated_at", "2015-11-02 08:50:40.492372"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.494533"], ["updated_at", "2015-11-02 08:50:40.494533"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.496928"], ["updated_at", "2015-11-02 08:50:40.496928"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.500817"], ["updated_at", "2015-11-02 08:50:40.500817"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.504600"], ["updated_at", "2015-11-02 08:50:40.504600"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:50:40.506326"], ["updated_at", "2015-11-02 08:50:40.506326"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.508963"], ["updated_at", "2015-11-02 08:50:40.508963"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-02 08:50:40.510421"], ["updated_at", "2015-11-02 08:50:40.510421"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.512475"], ["updated_at", "2015-11-02 08:50:40.512475"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:50:40.513703"], ["updated_at", "2015-11-02 08:50:40.513703"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.515608"], ["updated_at", "2015-11-02 08:50:40.515608"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-02 08:50:40.516783"], ["updated_at", "2015-11-02 08:50:40.516783"]] [1m[36m (0.0ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.518717"], ["updated_at", "2015-11-02 08:50:40.518717"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-02 08:50:40.522116"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-02 08:50:40.526360"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-02 08:50:40.530483"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.537400"], ["updated_at", "2015-11-02 08:50:40.537400"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 10.3ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563723e086284_148513fe6dd4521e045612@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:50:40.551132"], ["updated_at", "2015-11-02 08:50:40.551132"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:50:40.552592"], ["updated_at", "2015-11-02 08:50:40.552592"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.553801"], ["updated_at", "2015-11-02 08:50:40.553801"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms Sent mail to user30@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563723e0883af_148513fe6dd4521e0457f0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.561903"], ["updated_at", "2015-11-02 08:50:40.561903"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563723e089e83_148513fe6dd4521e04584c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:50:40.566323"], ["updated_at", "2015-11-02 08:50:40.566323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:50:40.567774"], ["updated_at", "2015-11-02 08:50:40.567774"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.568980"], ["updated_at", "2015-11-02 08:50:40.568980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563723e08b97e_148513fe6dd4521e04594@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.575433"], ["updated_at", "2015-11-02 08:50:40.575433"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563723e08d20b_148513fe6dd4521e046039@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:50:40.580011"], ["updated_at", "2015-11-02 08:50:40.580011"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:50:40.582227"], ["updated_at", "2015-11-02 08:50:40.582227"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.584241"], ["updated_at", "2015-11-02 08:50:40.584241"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.3ms) Date: Mon, 02 Nov 2015 09:50:40 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563723e08f641_148513fe6dd4521e0461c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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.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.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-02 08:50:40.597586"], ["updated_at", "2015-11-02 08:50:40.597586"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:50:40.599935"], ["updated_at", "2015-11-02 08:50:40.599935"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.602428"], ["updated_at", "2015-11-02 08:50:40.602428"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.604596"], ["updated_at", "2015-11-02 08:50:40.604596"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:50:40.606009"], ["updated_at", "2015-11-02 08:50:40.606009"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-02 08:50:40.612328"], ["updated_at", "2015-11-02 08:50:40.612328"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:50:40.614404"], ["updated_at", "2015-11-02 08:50:40.614404"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:50:40.616730"], ["updated_at", "2015-11-02 08:50:40.616730"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:50:40.625278"], ["updated_at", "2015-11-02 08:50:40.625278"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-02 08:50:40.627376"], ["updated_at", "2015-11-02 08:50:40.627376"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:50:40.629891"], ["updated_at", "2015-11-02 08:50:40.629891"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-02 08:53:00.051366"], ["updated_at", "2015-11-02 08:53:00.051366"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.088002"], ["updated_at", "2015-11-02 08:53:00.088002"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.6ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.133481"], ["updated_at", "2015-11-02 08:53:00.133481"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.147366"], ["updated_at", "2015-11-02 08:53:00.147366"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.151278"], ["updated_at", "2015-11-02 08:53:00.151278"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 17ms (Views: 10.0ms | ActiveRecord: 0.0ms) [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:53:00.185865"], ["updated_at", "2015-11-02 08:53:00.185865"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.188214"], ["updated_at", "2015-11-02 08:53:00.188214"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.190757"], ["updated_at", "2015-11-02 08:53:00.190757"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.193268"], ["updated_at", "2015-11-02 08:53:00.193268"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.195107"], ["updated_at", "2015-11-02 08:53:00.195107"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.4ms) Rendered wupee/api/notifications/index.json.jbuilder (11.3ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:53:00.253873"], ["updated_at", "2015-11-02 08:53:00.253873"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.256275"], ["updated_at", "2015-11-02 08:53:00.256275"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.258935"], ["updated_at", "2015-11-02 08:53:00.258935"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.261755"], ["updated_at", "2015-11-02 08:53:00.261755"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.263614"], ["updated_at", "2015-11-02 08:53:00.263614"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.0ms) Rendered wupee/api/notifications/show.json.jbuilder (3.4ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms) [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:53:00.278707"], ["updated_at", "2015-11-02 08:53:00.278707"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.280901"], ["updated_at", "2015-11-02 08:53:00.280901"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.283254"], ["updated_at", "2015-11-02 08:53:00.283254"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.285703"], ["updated_at", "2015-11-02 08:53:00.285703"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.289381"], ["updated_at", "2015-11-02 08:53:00.289381"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.5ms) Rendered wupee/api/notifications/show.json.jbuilder (2.1ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-02 08:53:00.305415"], ["updated_at", "2015-11-02 08:53:00.305415"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.313238"], ["updated_at", "2015-11-02 08:53:00.313238"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.316440"], ["updated_at", "2015-11-02 08:53:00.316440"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.319230"], ["updated_at", "2015-11-02 08:53:00.319230"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.320902"], ["updated_at", "2015-11-02 08:53:00.320902"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:00.479451"], ["updated_at", "2015-11-02 08:53:00.479451"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:53:00.481589"], ["updated_at", "2015-11-02 08:53:00.481589"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.485783"], ["updated_at", "2015-11-02 08:53:00.485783"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.487813"], ["updated_at", "2015-11-02 08:53:00.487813"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.489603"], ["updated_at", "2015-11-02 08:53:00.489603"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:00.496161"], ["updated_at", "2015-11-02 08:53:00.496161"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:53:00.498747"], ["updated_at", "2015-11-02 08:53:00.498747"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.501894"], ["updated_at", "2015-11-02 08:53:00.501894"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.504058"], ["updated_at", "2015-11-02 08:53:00.504058"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.505894"], ["updated_at", "2015-11-02 08:53:00.505894"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 18.7ms Sent mail to user7@sleede.com (8.4ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5637246c81ff2_148773ffc0dc601d0130f7@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:00.539410"], ["updated_at", "2015-11-02 08:53:00.539410"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-02 08:53:00.541555"], ["updated_at", "2015-11-02 08:53:00.541555"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.548237"], ["updated_at", "2015-11-02 08:53:00.548237"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.553490"], ["updated_at", "2015-11-02 08:53:00.553490"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.555573"], ["updated_at", "2015-11-02 08:53:00.555573"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user8@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5637246c8880e_148773ffc0dc601d013136@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:00.563396"], ["updated_at", "2015-11-02 08:53:00.563396"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:53:00.565741"], ["updated_at", "2015-11-02 08:53:00.565741"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.568579"], ["updated_at", "2015-11-02 08:53:00.568579"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.570166"], ["updated_at", "2015-11-02 08:53:00.570166"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.572072"], ["updated_at", "2015-11-02 08:53:00.572072"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user9@sleede.com (1.5ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5637246c8c936_148773ffc0dc601d0132d2@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:00.580310"], ["updated_at", "2015-11-02 08:53:00.580310"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-02 08:53:00.584215"], ["updated_at", "2015-11-02 08:53:00.584215"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.589061"], ["updated_at", "2015-11-02 08:53:00.589061"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.591373"], ["updated_at", "2015-11-02 08:53:00.591373"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.594260"], ["updated_at", "2015-11-02 08:53:00.594260"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.4ms Sent mail to user10@sleede.com (1.6ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5637246c93705_148773ffc0dc601d0133ce@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.607744"], ["updated_at", "2015-11-02 08:53:00.607744"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:53:00.609808"], ["updated_at", "2015-11-02 08:53:00.609808"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.612738"], ["updated_at", "2015-11-02 08:53:00.612738"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.616512"], ["updated_at", "2015-11-02 08:53:00.616512"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.618446"], ["updated_at", "2015-11-02 08:53:00.618446"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.630353"], ["updated_at", "2015-11-02 08:53:00.630353"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:53:00.632790"], ["updated_at", "2015-11-02 08:53:00.632790"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.635312"], ["updated_at", "2015-11-02 08:53:00.635312"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.638020"], ["updated_at", "2015-11-02 08:53:00.638020"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:53:00.640166"], ["updated_at", "2015-11-02 08:53:00.640166"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.644747"], ["updated_at", "2015-11-02 08:53:00.644747"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.646532"], ["updated_at", "2015-11-02 08:53:00.646532"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.649418"], ["updated_at", "2015-11-02 08:53:00.649418"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.655848"], ["updated_at", "2015-11-02 08:53:00.655848"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:53:00.660398"], ["updated_at", "2015-11-02 08:53:00.660398"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.665116"], ["updated_at", "2015-11-02 08:53:00.665116"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.668118"], ["updated_at", "2015-11-02 08:53:00.668118"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:53:00.669975"], ["updated_at", "2015-11-02 08:53:00.669975"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.672770"], ["updated_at", "2015-11-02 08:53:00.672770"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.674652"], ["updated_at", "2015-11-02 08:53:00.674652"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.677037"], ["updated_at", "2015-11-02 08:53:00.677037"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.681235"], ["updated_at", "2015-11-02 08:53:00.681235"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:53:00.683057"], ["updated_at", "2015-11-02 08:53:00.683057"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.685504"], ["updated_at", "2015-11-02 08:53:00.685504"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.688246"], ["updated_at", "2015-11-02 08:53:00.688246"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.695595"], ["updated_at", "2015-11-02 08:53:00.695595"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-02 08:53:00.697468"], ["updated_at", "2015-11-02 08:53:00.697468"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.700603"], ["updated_at", "2015-11-02 08:53:00.700603"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.704681"], ["updated_at", "2015-11-02 08:53:00.704681"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.714984"], ["updated_at", "2015-11-02 08:53:00.714984"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:53:00.717344"], ["updated_at", "2015-11-02 08:53:00.717344"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.719973"], ["updated_at", "2015-11-02 08:53:00.719973"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.722816"], ["updated_at", "2015-11-02 08:53:00.722816"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:53:00.724467"], ["updated_at", "2015-11-02 08:53:00.724467"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.727136"], ["updated_at", "2015-11-02 08:53:00.727136"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.728815"], ["updated_at", "2015-11-02 08:53:00.728815"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.731058"], ["updated_at", "2015-11-02 08:53:00.731058"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.735251"], ["updated_at", "2015-11-02 08:53:00.735251"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-02 08:53:00.736973"], ["updated_at", "2015-11-02 08:53:00.736973"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.739250"], ["updated_at", "2015-11-02 08:53:00.739250"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.743902"], ["updated_at", "2015-11-02 08:53:00.743902"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-02 08:53:00.746811"], ["updated_at", "2015-11-02 08:53:00.746811"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.750322"], ["updated_at", "2015-11-02 08:53:00.750322"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:00.751861"], ["updated_at", "2015-11-02 08:53:00.751861"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.759366"], ["updated_at", "2015-11-02 08:53:00.759366"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-02 08:53:00.765189"], ["updated_at", "2015-11-02 08:53:00.765189"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.767827"], ["updated_at", "2015-11-02 08:53:00.767827"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.770605"], ["updated_at", "2015-11-02 08:53:00.770605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:53:00.775452"], ["updated_at", "2015-11-02 08:53:00.775452"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.778180"], ["updated_at", "2015-11-02 08:53:00.778180"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.781080"], ["updated_at", "2015-11-02 08:53:00.781080"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-02 08:53:00.786084"], ["updated_at", "2015-11-02 08:53:00.786084"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.788632"], ["updated_at", "2015-11-02 08:53:00.788632"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.791119"], ["updated_at", "2015-11-02 08:53:00.791119"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-02 08:53:00.796785"], ["updated_at", "2015-11-02 08:53:00.796785"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.800836"], ["updated_at", "2015-11-02 08:53:00.800836"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.804322"], ["updated_at", "2015-11-02 08:53:00.804322"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-02 08:53:00.808104"], ["updated_at", "2015-11-02 08:53:00.808104"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.815999"], ["updated_at", "2015-11-02 08:53:00.815999"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.821708"], ["updated_at", "2015-11-02 08:53:00.821708"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.826068"], ["updated_at", "2015-11-02 08:53:00.826068"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.830445"], ["updated_at", "2015-11-02 08:53:00.830445"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:53:00.832337"], ["updated_at", "2015-11-02 08:53:00.832337"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.835394"], ["updated_at", "2015-11-02 08:53:00.835394"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-02 08:53:00.836920"], ["updated_at", "2015-11-02 08:53:00.836920"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.839334"], ["updated_at", "2015-11-02 08:53:00.839334"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:53:00.840818"], ["updated_at", "2015-11-02 08:53:00.840818"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.843472"], ["updated_at", "2015-11-02 08:53:00.843472"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-02 08:53:00.844996"], ["updated_at", "2015-11-02 08:53:00.844996"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.847423"], ["updated_at", "2015-11-02 08:53:00.847423"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-02 08:53:00.854501"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-02 08:53:00.860676"], ["id", 3]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-02 08:53:00.869884"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.876932"], ["updated_at", "2015-11-02 08:53:00.876932"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 11.0ms Sent mail to user27@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5637246cd942f_148773ffc0dc601d0134c2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:00.891421"], ["updated_at", "2015-11-02 08:53:00.891421"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:00.892910"], ["updated_at", "2015-11-02 08:53:00.892910"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.894224"], ["updated_at", "2015-11-02 08:53:00.894224"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5637246cdaf2e_148773ffc0dc601d013580@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.900331"], ["updated_at", "2015-11-02 08:53:00.900331"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5637246cdc75a_148773ffc0dc601d0136cf@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:00.904374"], ["updated_at", "2015-11-02 08:53:00.904374"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:00.905689"], ["updated_at", "2015-11-02 08:53:00.905689"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.906934"], ["updated_at", "2015-11-02 08:53:00.906934"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.1ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5637246cde044_148773ffc0dc601d0137d1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.913497"], ["updated_at", "2015-11-02 08:53:00.913497"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5637246cdfb9e_148773ffc0dc601d0138c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:00.917806"], ["updated_at", "2015-11-02 08:53:00.917806"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:00.919212"], ["updated_at", "2015-11-02 08:53:00.919212"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.920471"], ["updated_at", "2015-11-02 08:53:00.920471"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:00 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5637246ce157a_148773ffc0dc601d0139d8@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-02 08:53:00.931812"], ["updated_at", "2015-11-02 08:53:00.931812"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:00.934113"], ["updated_at", "2015-11-02 08:53:00.934113"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.936704"], ["updated_at", "2015-11-02 08:53:00.936704"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.939212"], ["updated_at", "2015-11-02 08:53:00.939212"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:00.940898"], ["updated_at", "2015-11-02 08:53:00.940898"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-02 08:53:00.949037"], ["updated_at", "2015-11-02 08:53:00.949037"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:00.951344"], ["updated_at", "2015-11-02 08:53:00.951344"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:00.953857"], ["updated_at", "2015-11-02 08:53:00.953857"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:00.964879"], ["updated_at", "2015-11-02 08:53:00.964879"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-02 08:53:00.967988"], ["updated_at", "2015-11-02 08:53:00.967988"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:00.974697"], ["updated_at", "2015-11-02 08:53:00.974697"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-02 08:53:12.882326"], ["updated_at", "2015-11-02 08:53:12.882326"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:12.897609"], ["updated_at", "2015-11-02 08:53:12.897609"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:12.916613"], ["updated_at", "2015-11-02 08:53:12.916613"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:12.934596"], ["updated_at", "2015-11-02 08:53:12.934596"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:12.938285"], ["updated_at", "2015-11-02 08:53:12.938285"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.3ms) Completed 200 OK in 18ms (Views: 10.9ms | ActiveRecord: 0.0ms) [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.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:53:12.978251"], ["updated_at", "2015-11-02 08:53:12.978251"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:12.981541"], ["updated_at", "2015-11-02 08:53:12.981541"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:12.985594"], ["updated_at", "2015-11-02 08:53:12.985594"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:12.989827"], ["updated_at", "2015-11-02 08:53:12.989827"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:12.992416"], ["updated_at", "2015-11-02 08:53:12.992416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered wupee/api/notifications/_notification.json.jbuilder (5.3ms) Rendered wupee/api/notifications/index.json.jbuilder (16.5ms) Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.6ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:53:13.061918"], ["updated_at", "2015-11-02 08:53:13.061918"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:13.064933"], ["updated_at", "2015-11-02 08:53:13.064933"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.069845"], ["updated_at", "2015-11-02 08:53:13.069845"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.072947"], ["updated_at", "2015-11-02 08:53:13.072947"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.074625"], ["updated_at", "2015-11-02 08:53:13.074625"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.2ms) Rendered wupee/api/notifications/show.json.jbuilder (3.6ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:53:13.091739"], ["updated_at", "2015-11-02 08:53:13.091739"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:13.097011"], ["updated_at", "2015-11-02 08:53:13.097011"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.100971"], ["updated_at", "2015-11-02 08:53:13.100971"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.104729"], ["updated_at", "2015-11-02 08:53:13.104729"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.106876"], ["updated_at", "2015-11-02 08:53:13.106876"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.5ms) Rendered wupee/api/notifications/show.json.jbuilder (2.0ms) Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-02 08:53:13.121502"], ["updated_at", "2015-11-02 08:53:13.121502"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.130665"], ["updated_at", "2015-11-02 08:53:13.130665"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.133544"], ["updated_at", "2015-11-02 08:53:13.133544"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.136654"], ["updated_at", "2015-11-02 08:53:13.136654"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.139251"], ["updated_at", "2015-11-02 08:53:13.139251"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:13.322844"], ["updated_at", "2015-11-02 08:53:13.322844"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:53:13.325939"], ["updated_at", "2015-11-02 08:53:13.325939"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.329145"], ["updated_at", "2015-11-02 08:53:13.329145"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.330787"], ["updated_at", "2015-11-02 08:53:13.330787"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.332240"], ["updated_at", "2015-11-02 08:53:13.332240"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:13.337606"], ["updated_at", "2015-11-02 08:53:13.337606"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:53:13.339602"], ["updated_at", "2015-11-02 08:53:13.339602"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.342089"], ["updated_at", "2015-11-02 08:53:13.342089"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.343520"], ["updated_at", "2015-11-02 08:53:13.343520"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.344831"], ["updated_at", "2015-11-02 08:53:13.344831"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.3ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 16.4ms Sent mail to user7@sleede.com (8.1ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5637247959eb5_1487f3fcc084601e08049a@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:13.375968"], ["updated_at", "2015-11-02 08:53:13.375968"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-02 08:53:13.378767"], ["updated_at", "2015-11-02 08:53:13.378767"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.382231"], ["updated_at", "2015-11-02 08:53:13.382231"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:13.384045"], ["updated_at", "2015-11-02 08:53:13.384045"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.385476"], ["updated_at", "2015-11-02 08:53:13.385476"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 4.1ms Sent mail to user8@sleede.com (3.2ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563724795fb8e_1487f3fcc084601e0805e4@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:13.399048"], ["updated_at", "2015-11-02 08:53:13.399048"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:53:13.400945"], ["updated_at", "2015-11-02 08:53:13.400945"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.403486"], ["updated_at", "2015-11-02 08:53:13.403486"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.404853"], ["updated_at", "2015-11-02 08:53:13.404853"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.406179"], ["updated_at", "2015-11-02 08:53:13.406179"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user9@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <56372479640e3_1487f3fcc084601e0806da@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:13.413800"], ["updated_at", "2015-11-02 08:53:13.413800"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-02 08:53:13.415945"], ["updated_at", "2015-11-02 08:53:13.415945"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.418563"], ["updated_at", "2015-11-02 08:53:13.418563"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:13.419935"], ["updated_at", "2015-11-02 08:53:13.419935"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.421172"], ["updated_at", "2015-11-02 08:53:13.421172"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56372479679dd_1487f3fcc084601e08071f@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.3ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.429143"], ["updated_at", "2015-11-02 08:53:13.429143"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:53:13.431211"], ["updated_at", "2015-11-02 08:53:13.431211"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.434931"], ["updated_at", "2015-11-02 08:53:13.434931"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.442048"], ["updated_at", "2015-11-02 08:53:13.442048"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.446963"], ["updated_at", "2015-11-02 08:53:13.446963"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.457712"], ["updated_at", "2015-11-02 08:53:13.457712"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:53:13.459392"], ["updated_at", "2015-11-02 08:53:13.459392"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.461810"], ["updated_at", "2015-11-02 08:53:13.461810"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.464629"], ["updated_at", "2015-11-02 08:53:13.464629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:53:13.466703"], ["updated_at", "2015-11-02 08:53:13.466703"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.469351"], ["updated_at", "2015-11-02 08:53:13.469351"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.470932"], ["updated_at", "2015-11-02 08:53:13.470932"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.472746"], ["updated_at", "2015-11-02 08:53:13.472746"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.477998"], ["updated_at", "2015-11-02 08:53:13.477998"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:53:13.480095"], ["updated_at", "2015-11-02 08:53:13.480095"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.483316"], ["updated_at", "2015-11-02 08:53:13.483316"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.485907"], ["updated_at", "2015-11-02 08:53:13.485907"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:53:13.489128"], ["updated_at", "2015-11-02 08:53:13.489128"]] [1m[35m (0.3ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.498688"], ["updated_at", "2015-11-02 08:53:13.498688"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.502130"], ["updated_at", "2015-11-02 08:53:13.502130"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.504143"], ["updated_at", "2015-11-02 08:53:13.504143"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.507553"], ["updated_at", "2015-11-02 08:53:13.507553"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:53:13.509030"], ["updated_at", "2015-11-02 08:53:13.509030"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.511044"], ["updated_at", "2015-11-02 08:53:13.511044"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.513118"], ["updated_at", "2015-11-02 08:53:13.513118"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:13.519107"], ["updated_at", "2015-11-02 08:53:13.519107"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-02 08:53:13.520719"], ["updated_at", "2015-11-02 08:53:13.520719"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.522794"], ["updated_at", "2015-11-02 08:53:13.522794"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.524903"], ["updated_at", "2015-11-02 08:53:13.524903"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.529297"], ["updated_at", "2015-11-02 08:53:13.529297"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:53:13.532457"], ["updated_at", "2015-11-02 08:53:13.532457"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.535684"], ["updated_at", "2015-11-02 08:53:13.535684"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.538910"], ["updated_at", "2015-11-02 08:53:13.538910"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:53:13.540651"], ["updated_at", "2015-11-02 08:53:13.540651"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.543398"], ["updated_at", "2015-11-02 08:53:13.543398"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.545005"], ["updated_at", "2015-11-02 08:53:13.545005"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.546897"], ["updated_at", "2015-11-02 08:53:13.546897"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:13.551667"], ["updated_at", "2015-11-02 08:53:13.551667"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-02 08:53:13.553456"], ["updated_at", "2015-11-02 08:53:13.553456"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.561917"], ["updated_at", "2015-11-02 08:53:13.561917"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.565992"], ["updated_at", "2015-11-02 08:53:13.565992"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-02 08:53:13.567557"], ["updated_at", "2015-11-02 08:53:13.567557"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.569761"], ["updated_at", "2015-11-02 08:53:13.569761"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:13.571213"], ["updated_at", "2015-11-02 08:53:13.571213"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.572975"], ["updated_at", "2015-11-02 08:53:13.572975"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-02 08:53:13.576134"], ["updated_at", "2015-11-02 08:53:13.576134"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.578384"], ["updated_at", "2015-11-02 08:53:13.578384"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.580885"], ["updated_at", "2015-11-02 08:53:13.580885"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:53:13.585679"], ["updated_at", "2015-11-02 08:53:13.585679"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.587958"], ["updated_at", "2015-11-02 08:53:13.587958"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.590294"], ["updated_at", "2015-11-02 08:53:13.590294"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-02 08:53:13.596462"], ["updated_at", "2015-11-02 08:53:13.596462"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.600192"], ["updated_at", "2015-11-02 08:53:13.600192"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.604972"], ["updated_at", "2015-11-02 08:53:13.604972"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-02 08:53:13.616407"], ["updated_at", "2015-11-02 08:53:13.616407"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.618758"], ["updated_at", "2015-11-02 08:53:13.618758"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.621822"], ["updated_at", "2015-11-02 08:53:13.621822"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-02 08:53:13.625077"], ["updated_at", "2015-11-02 08:53:13.625077"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.627519"], ["updated_at", "2015-11-02 08:53:13.627519"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.629894"], ["updated_at", "2015-11-02 08:53:13.629894"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.633712"], ["updated_at", "2015-11-02 08:53:13.633712"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.637586"], ["updated_at", "2015-11-02 08:53:13.637586"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:53:13.639202"], ["updated_at", "2015-11-02 08:53:13.639202"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.643889"], ["updated_at", "2015-11-02 08:53:13.643889"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-02 08:53:13.645793"], ["updated_at", "2015-11-02 08:53:13.645793"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.648920"], ["updated_at", "2015-11-02 08:53:13.648920"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:53:13.650712"], ["updated_at", "2015-11-02 08:53:13.650712"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.654258"], ["updated_at", "2015-11-02 08:53:13.654258"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-02 08:53:13.660681"], ["updated_at", "2015-11-02 08:53:13.660681"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.665189"], ["updated_at", "2015-11-02 08:53:13.665189"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-02 08:53:13.668852"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-02 08:53:13.675841"], ["id", 3]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-02 08:53:13.681790"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.691968"], ["updated_at", "2015-11-02 08:53:13.691968"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 11.1ms Sent mail to user27@sleede.com (1.6ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56372479ac333_1487f3fcc084601e08087c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:13.707040"], ["updated_at", "2015-11-02 08:53:13.707040"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:13.708664"], ["updated_at", "2015-11-02 08:53:13.708664"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.710064"], ["updated_at", "2015-11-02 08:53:13.710064"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56372479ae0f0_1487f3fcc084601e0809c9@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.716494"], ["updated_at", "2015-11-02 08:53:13.716494"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user27@sleede.com (1.7ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56372479afd38_1487f3fcc084601e0810d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:13.722050"], ["updated_at", "2015-11-02 08:53:13.722050"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:13.723477"], ["updated_at", "2015-11-02 08:53:13.723477"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.724734"], ["updated_at", "2015-11-02 08:53:13.724734"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56372479b18b8_1487f3fcc084601e0811a2@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.3ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.731505"], ["updated_at", "2015-11-02 08:53:13.731505"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <56372479b3505_1487f3fcc084601e08126a@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:13.736048"], ["updated_at", "2015-11-02 08:53:13.736048"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:13.737588"], ["updated_at", "2015-11-02 08:53:13.737588"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.739075"], ["updated_at", "2015-11-02 08:53:13.739075"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.3ms) Date: Mon, 02 Nov 2015 09:53:13 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <56372479b51a4_1487f3fcc084601e081387@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-02 08:53:13.751054"], ["updated_at", "2015-11-02 08:53:13.751054"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:13.755291"], ["updated_at", "2015-11-02 08:53:13.755291"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.760132"], ["updated_at", "2015-11-02 08:53:13.760132"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.765661"], ["updated_at", "2015-11-02 08:53:13.765661"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:13.768672"], ["updated_at", "2015-11-02 08:53:13.768672"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-02 08:53:13.785309"], ["updated_at", "2015-11-02 08:53:13.785309"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:13.791285"], ["updated_at", "2015-11-02 08:53:13.791285"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:13.795084"], ["updated_at", "2015-11-02 08:53:13.795084"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.6ms)[0m begin transaction [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:13.817715"], ["updated_at", "2015-11-02 08:53:13.817715"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-02 08:53:13.822565"], ["updated_at", "2015-11-02 08:53:13.822565"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:13.828330"], ["updated_at", "2015-11-02 08:53:13.828330"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[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 rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-02 08:53:43.932274"], ["updated_at", "2015-11-02 08:53:43.932274"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:43.942289"], ["updated_at", "2015-11-02 08:53:43.942289"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:43.953805"], ["updated_at", "2015-11-02 08:53:43.953805"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:43.966813"], ["updated_at", "2015-11-02 08:53:43.966813"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:43.973000"], ["updated_at", "2015-11-02 08:53:43.973000"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 15ms (Views: 10.4ms | ActiveRecord: 0.0ms) [1m[35m (9.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 08:53:44.023229"], ["updated_at", "2015-11-02 08:53:44.023229"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.025645"], ["updated_at", "2015-11-02 08:53:44.025645"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.028172"], ["updated_at", "2015-11-02 08:53:44.028172"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.030607"], ["updated_at", "2015-11-02 08:53:44.030607"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.032849"], ["updated_at", "2015-11-02 08:53:44.032849"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.1ms) Rendered wupee/api/notifications/index.json.jbuilder (8.4ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 08:53:44.059074"], ["updated_at", "2015-11-02 08:53:44.059074"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.061718"], ["updated_at", "2015-11-02 08:53:44.061718"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.064809"], ["updated_at", "2015-11-02 08:53:44.064809"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.068444"], ["updated_at", "2015-11-02 08:53:44.068444"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.070411"], ["updated_at", "2015-11-02 08:53:44.070411"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.0ms) Rendered wupee/api/notifications/show.json.jbuilder (3.7ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 08:53:44.092795"], ["updated_at", "2015-11-02 08:53:44.092795"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.095006"], ["updated_at", "2015-11-02 08:53:44.095006"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.097259"], ["updated_at", "2015-11-02 08:53:44.097259"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.099645"], ["updated_at", "2015-11-02 08:53:44.099645"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.101210"], ["updated_at", "2015-11-02 08:53:44.101210"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.2ms) Rendered wupee/api/notifications/show.json.jbuilder (1.8ms) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms) [1m[36m (1.2ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-02 08:53:44.113205"], ["updated_at", "2015-11-02 08:53:44.113205"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.116048"], ["updated_at", "2015-11-02 08:53:44.116048"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.119508"], ["updated_at", "2015-11-02 08:53:44.119508"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.127919"], ["updated_at", "2015-11-02 08:53:44.127919"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.131747"], ["updated_at", "2015-11-02 08:53:44.131747"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:44.255648"], ["updated_at", "2015-11-02 08:53:44.255648"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 08:53:44.257607"], ["updated_at", "2015-11-02 08:53:44.257607"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.260353"], ["updated_at", "2015-11-02 08:53:44.260353"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.261809"], ["updated_at", "2015-11-02 08:53:44.261809"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.263128"], ["updated_at", "2015-11-02 08:53:44.263128"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (8.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:44.277337"], ["updated_at", "2015-11-02 08:53:44.277337"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 08:53:44.279478"], ["updated_at", "2015-11-02 08:53:44.279478"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.282378"], ["updated_at", "2015-11-02 08:53:44.282378"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.284259"], ["updated_at", "2015-11-02 08:53:44.284259"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.285828"], ["updated_at", "2015-11-02 08:53:44.285828"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.8ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 13.0ms Sent mail to user7@sleede.com (3.7ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5637249849f74_148863fc7b98601d073791@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:44.307752"], ["updated_at", "2015-11-02 08:53:44.307752"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-02 08:53:44.311016"], ["updated_at", "2015-11-02 08:53:44.311016"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.315037"], ["updated_at", "2015-11-02 08:53:44.315037"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.317481"], ["updated_at", "2015-11-02 08:53:44.317481"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.319433"], ["updated_at", "2015-11-02 08:53:44.319433"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.5ms Sent mail to user8@sleede.com (3.6ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563724984fa09_148863fc7b98601d0738c0@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:44.333273"], ["updated_at", "2015-11-02 08:53:44.333273"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 08:53:44.335172"], ["updated_at", "2015-11-02 08:53:44.335172"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.337633"], ["updated_at", "2015-11-02 08:53:44.337633"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.338989"], ["updated_at", "2015-11-02 08:53:44.338989"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.340463"], ["updated_at", "2015-11-02 08:53:44.340463"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.3ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5637249853d92_148863fc7b98601d073979@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 08:53:44.347751"], ["updated_at", "2015-11-02 08:53:44.347751"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-02 08:53:44.349798"], ["updated_at", "2015-11-02 08:53:44.349798"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.352495"], ["updated_at", "2015-11-02 08:53:44.352495"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.354033"], ["updated_at", "2015-11-02 08:53:44.354033"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.355508"], ["updated_at", "2015-11-02 08:53:44.355508"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user10@sleede.com (1.3ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <56372498579d6_148863fc7b98601d07402e@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.362012"], ["updated_at", "2015-11-02 08:53:44.362012"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 08:53:44.364350"], ["updated_at", "2015-11-02 08:53:44.364350"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.369297"], ["updated_at", "2015-11-02 08:53:44.369297"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.372959"], ["updated_at", "2015-11-02 08:53:44.372959"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.375063"], ["updated_at", "2015-11-02 08:53:44.375063"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.387392"], ["updated_at", "2015-11-02 08:53:44.387392"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 08:53:44.391651"], ["updated_at", "2015-11-02 08:53:44.391651"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.394234"], ["updated_at", "2015-11-02 08:53:44.394234"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.396423"], ["updated_at", "2015-11-02 08:53:44.396423"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 08:53:44.397916"], ["updated_at", "2015-11-02 08:53:44.397916"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.400043"], ["updated_at", "2015-11-02 08:53:44.400043"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.402129"], ["updated_at", "2015-11-02 08:53:44.402129"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.404389"], ["updated_at", "2015-11-02 08:53:44.404389"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.407924"], ["updated_at", "2015-11-02 08:53:44.407924"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 08:53:44.409544"], ["updated_at", "2015-11-02 08:53:44.409544"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.411847"], ["updated_at", "2015-11-02 08:53:44.411847"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.414300"], ["updated_at", "2015-11-02 08:53:44.414300"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 08:53:44.415865"], ["updated_at", "2015-11-02 08:53:44.415865"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.418323"], ["updated_at", "2015-11-02 08:53:44.418323"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.421158"], ["updated_at", "2015-11-02 08:53:44.421158"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.423762"], ["updated_at", "2015-11-02 08:53:44.423762"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.427900"], ["updated_at", "2015-11-02 08:53:44.427900"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 08:53:44.429658"], ["updated_at", "2015-11-02 08:53:44.429658"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.438988"], ["updated_at", "2015-11-02 08:53:44.438988"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.442498"], ["updated_at", "2015-11-02 08:53:44.442498"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.447393"], ["updated_at", "2015-11-02 08:53:44.447393"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-02 08:53:44.448909"], ["updated_at", "2015-11-02 08:53:44.448909"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.450988"], ["updated_at", "2015-11-02 08:53:44.450988"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.453083"], ["updated_at", "2015-11-02 08:53:44.453083"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.457166"], ["updated_at", "2015-11-02 08:53:44.457166"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 08:53:44.458786"], ["updated_at", "2015-11-02 08:53:44.458786"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.460917"], ["updated_at", "2015-11-02 08:53:44.460917"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.463033"], ["updated_at", "2015-11-02 08:53:44.463033"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 08:53:44.464425"], ["updated_at", "2015-11-02 08:53:44.464425"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.466572"], ["updated_at", "2015-11-02 08:53:44.466572"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.470293"], ["updated_at", "2015-11-02 08:53:44.470293"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.472939"], ["updated_at", "2015-11-02 08:53:44.472939"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.477218"], ["updated_at", "2015-11-02 08:53:44.477218"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-02 08:53:44.478856"], ["updated_at", "2015-11-02 08:53:44.478856"]] [1m[36m (0.3ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.484389"], ["updated_at", "2015-11-02 08:53:44.484389"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.491615"], ["updated_at", "2015-11-02 08:53:44.491615"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-02 08:53:44.493295"], ["updated_at", "2015-11-02 08:53:44.493295"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.495502"], ["updated_at", "2015-11-02 08:53:44.495502"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 08:53:44.496984"], ["updated_at", "2015-11-02 08:53:44.496984"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.498657"], ["updated_at", "2015-11-02 08:53:44.498657"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-02 08:53:44.502029"], ["updated_at", "2015-11-02 08:53:44.502029"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.504462"], ["updated_at", "2015-11-02 08:53:44.504462"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.507031"], ["updated_at", "2015-11-02 08:53:44.507031"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 08:53:44.511733"], ["updated_at", "2015-11-02 08:53:44.511733"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.513960"], ["updated_at", "2015-11-02 08:53:44.513960"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.516318"], ["updated_at", "2015-11-02 08:53:44.516318"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-02 08:53:44.522675"], ["updated_at", "2015-11-02 08:53:44.522675"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.525997"], ["updated_at", "2015-11-02 08:53:44.525997"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.528387"], ["updated_at", "2015-11-02 08:53:44.528387"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-02 08:53:44.540922"], ["updated_at", "2015-11-02 08:53:44.540922"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.543730"], ["updated_at", "2015-11-02 08:53:44.543730"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.546434"], ["updated_at", "2015-11-02 08:53:44.546434"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-02 08:53:44.549407"], ["updated_at", "2015-11-02 08:53:44.549407"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.551819"], ["updated_at", "2015-11-02 08:53:44.551819"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.554449"], ["updated_at", "2015-11-02 08:53:44.554449"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.558364"], ["updated_at", "2015-11-02 08:53:44.558364"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.562291"], ["updated_at", "2015-11-02 08:53:44.562291"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 08:53:44.564016"], ["updated_at", "2015-11-02 08:53:44.564016"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.566432"], ["updated_at", "2015-11-02 08:53:44.566432"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-02 08:53:44.569168"], ["updated_at", "2015-11-02 08:53:44.569168"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.572921"], ["updated_at", "2015-11-02 08:53:44.572921"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 08:53:44.574827"], ["updated_at", "2015-11-02 08:53:44.574827"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.577327"], ["updated_at", "2015-11-02 08:53:44.577327"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-02 08:53:44.578631"], ["updated_at", "2015-11-02 08:53:44.578631"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.583417"], ["updated_at", "2015-11-02 08:53:44.583417"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-02 08:53:44.591738"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-02 08:53:44.595395"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-02 08:53:44.598279"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.603100"], ["updated_at", "2015-11-02 08:53:44.603100"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.2ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 9.6ms Sent mail to user27@sleede.com (1.3ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5637249896048_148863fc7b98601d074190@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:44.615910"], ["updated_at", "2015-11-02 08:53:44.615910"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:44.617249"], ["updated_at", "2015-11-02 08:53:44.617249"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.618402"], ["updated_at", "2015-11-02 08:53:44.618402"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5637249897967_148863fc7b98601d0742b1@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.624196"], ["updated_at", "2015-11-02 08:53:44.624196"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user27@sleede.com (1.1ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563724989905f_148863fc7b98601d074366@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:44.628087"], ["updated_at", "2015-11-02 08:53:44.628087"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:44.629366"], ["updated_at", "2015-11-02 08:53:44.629366"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.630768"], ["updated_at", "2015-11-02 08:53:44.630768"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563724989aa27_148863fc7b98601d07446c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.637039"], ["updated_at", "2015-11-02 08:53:44.637039"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563724989c320_148863fc7b98601d074591@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:44.641068"], ["updated_at", "2015-11-02 08:53:44.641068"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 08:53:44.642308"], ["updated_at", "2015-11-02 08:53:44.642308"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.643442"], ["updated_at", "2015-11-02 08:53:44.643442"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.1ms) Date: Mon, 02 Nov 2015 09:53:44 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563724989dab1_148863fc7b98601d0746fd@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-02 08:53:44.653867"], ["updated_at", "2015-11-02 08:53:44.653867"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 08:53:44.655988"], ["updated_at", "2015-11-02 08:53:44.655988"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.658337"], ["updated_at", "2015-11-02 08:53:44.658337"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.660708"], ["updated_at", "2015-11-02 08:53:44.660708"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 08:53:44.662113"], ["updated_at", "2015-11-02 08:53:44.662113"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-02 08:53:44.670050"], ["updated_at", "2015-11-02 08:53:44.670050"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 08:53:44.672347"], ["updated_at", "2015-11-02 08:53:44.672347"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 08:53:44.675434"], ["updated_at", "2015-11-02 08:53:44.675434"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 08:53:44.686793"], ["updated_at", "2015-11-02 08:53:44.686793"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-02 08:53:44.689836"], ["updated_at", "2015-11-02 08:53:44.689836"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 08:53:44.693100"], ["updated_at", "2015-11-02 08:53:44.693100"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.3ms)[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[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-02 10:54:21.961958"], ["updated_at", "2015-11-02 10:54:21.961958"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:21.979408"], ["updated_at", "2015-11-02 10:54:21.979408"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.002342"], ["updated_at", "2015-11-02 10:54:22.002342"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.017923"], ["updated_at", "2015-11-02 10:54:22.017923"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.021872"], ["updated_at", "2015-11-02 10:54:22.021872"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 20ms (Views: 12.2ms | ActiveRecord: 0.0ms) [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 10:54:22.068667"], ["updated_at", "2015-11-02 10:54:22.068667"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.071191"], ["updated_at", "2015-11-02 10:54:22.071191"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.073968"], ["updated_at", "2015-11-02 10:54:22.073968"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.076839"], ["updated_at", "2015-11-02 10:54:22.076839"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.078478"], ["updated_at", "2015-11-02 10:54:22.078478"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.3ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered wupee/api/notifications/_notification.json.jbuilder (4.5ms) Rendered wupee/api/notifications/index.json.jbuilder (14.0ms) Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.5ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 10:54:22.102226"], ["updated_at", "2015-11-02 10:54:22.102226"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.104963"], ["updated_at", "2015-11-02 10:54:22.104963"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.107351"], ["updated_at", "2015-11-02 10:54:22.107351"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.113930"], ["updated_at", "2015-11-02 10:54:22.113930"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.118282"], ["updated_at", "2015-11-02 10:54:22.118282"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.4ms) Rendered wupee/api/notifications/show.json.jbuilder (4.2ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 10:54:22.134772"], ["updated_at", "2015-11-02 10:54:22.134772"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.137139"], ["updated_at", "2015-11-02 10:54:22.137139"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.139699"], ["updated_at", "2015-11-02 10:54:22.139699"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.142176"], ["updated_at", "2015-11-02 10:54:22.142176"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.144147"], ["updated_at", "2015-11-02 10:54:22.144147"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.8ms) Rendered wupee/api/notifications/show.json.jbuilder (2.4ms) Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.3ms) [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-02 10:54:22.162406"], ["updated_at", "2015-11-02 10:54:22.162406"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.168697"], ["updated_at", "2015-11-02 10:54:22.168697"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.171952"], ["updated_at", "2015-11-02 10:54:22.171952"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.174572"], ["updated_at", "2015-11-02 10:54:22.174572"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.176146"], ["updated_at", "2015-11-02 10:54:22.176146"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 10:54:22.333200"], ["updated_at", "2015-11-02 10:54:22.333200"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 10:54:22.335572"], ["updated_at", "2015-11-02 10:54:22.335572"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.338660"], ["updated_at", "2015-11-02 10:54:22.338660"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.340417"], ["updated_at", "2015-11-02 10:54:22.340417"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.341919"], ["updated_at", "2015-11-02 10:54:22.341919"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 10:54:22.347725"], ["updated_at", "2015-11-02 10:54:22.347725"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 10:54:22.349700"], ["updated_at", "2015-11-02 10:54:22.349700"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.352199"], ["updated_at", "2015-11-02 10:54:22.352199"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.353618"], ["updated_at", "2015-11-02 10:54:22.353618"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.354998"], ["updated_at", "2015-11-02 10:54:22.354998"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 15.9ms Sent mail to user7@sleede.com (8.1ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <563740de5c1c0_14f833fc1898601d4139a7@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 10:54:22.385696"], ["updated_at", "2015-11-02 10:54:22.385696"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-02 10:54:22.388240"], ["updated_at", "2015-11-02 10:54:22.388240"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.390973"], ["updated_at", "2015-11-02 10:54:22.390973"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.395658"], ["updated_at", "2015-11-02 10:54:22.395658"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.399206"], ["updated_at", "2015-11-02 10:54:22.399206"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms Sent mail to user8@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <563740de62bd8_14f833fc1898601d41402d@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 10:54:22.408759"], ["updated_at", "2015-11-02 10:54:22.408759"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 10:54:22.411354"], ["updated_at", "2015-11-02 10:54:22.411354"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.414482"], ["updated_at", "2015-11-02 10:54:22.414482"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.416103"], ["updated_at", "2015-11-02 10:54:22.416103"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.418083"], ["updated_at", "2015-11-02 10:54:22.418083"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.6ms Sent mail to user9@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <563740de66ea8_14f833fc1898601d414195@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 10:54:22.425751"], ["updated_at", "2015-11-02 10:54:22.425751"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-02 10:54:22.427798"], ["updated_at", "2015-11-02 10:54:22.427798"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.431445"], ["updated_at", "2015-11-02 10:54:22.431445"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.434737"], ["updated_at", "2015-11-02 10:54:22.434737"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.436767"], ["updated_at", "2015-11-02 10:54:22.436767"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.9ms Sent mail to user10@sleede.com (3.1ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <563740de6bc9a_14f833fc1898601d4142d6@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.450940"], ["updated_at", "2015-11-02 10:54:22.450940"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 10:54:22.453773"], ["updated_at", "2015-11-02 10:54:22.453773"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.457136"], ["updated_at", "2015-11-02 10:54:22.457136"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.459630"], ["updated_at", "2015-11-02 10:54:22.459630"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.461157"], ["updated_at", "2015-11-02 10:54:22.461157"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.470521"], ["updated_at", "2015-11-02 10:54:22.470521"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 10:54:22.472233"], ["updated_at", "2015-11-02 10:54:22.472233"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.474553"], ["updated_at", "2015-11-02 10:54:22.474553"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.477627"], ["updated_at", "2015-11-02 10:54:22.477627"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 10:54:22.479593"], ["updated_at", "2015-11-02 10:54:22.479593"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.483705"], ["updated_at", "2015-11-02 10:54:22.483705"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.485752"], ["updated_at", "2015-11-02 10:54:22.485752"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.488647"], ["updated_at", "2015-11-02 10:54:22.488647"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.496024"], ["updated_at", "2015-11-02 10:54:22.496024"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 10:54:22.502545"], ["updated_at", "2015-11-02 10:54:22.502545"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.505789"], ["updated_at", "2015-11-02 10:54:22.505789"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.508385"], ["updated_at", "2015-11-02 10:54:22.508385"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 10:54:22.509949"], ["updated_at", "2015-11-02 10:54:22.509949"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.512232"], ["updated_at", "2015-11-02 10:54:22.512232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.513631"], ["updated_at", "2015-11-02 10:54:22.513631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.515631"], ["updated_at", "2015-11-02 10:54:22.515631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.519443"], ["updated_at", "2015-11-02 10:54:22.519443"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 10:54:22.521184"], ["updated_at", "2015-11-02 10:54:22.521184"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.523610"], ["updated_at", "2015-11-02 10:54:22.523610"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.525923"], ["updated_at", "2015-11-02 10:54:22.525923"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.534326"], ["updated_at", "2015-11-02 10:54:22.534326"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-02 10:54:22.537137"], ["updated_at", "2015-11-02 10:54:22.537137"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.539595"], ["updated_at", "2015-11-02 10:54:22.539595"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.543842"], ["updated_at", "2015-11-02 10:54:22.543842"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.554415"], ["updated_at", "2015-11-02 10:54:22.554415"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 10:54:22.556207"], ["updated_at", "2015-11-02 10:54:22.556207"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.558470"], ["updated_at", "2015-11-02 10:54:22.558470"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.560728"], ["updated_at", "2015-11-02 10:54:22.560728"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 10:54:22.562189"], ["updated_at", "2015-11-02 10:54:22.562189"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.564816"], ["updated_at", "2015-11-02 10:54:22.564816"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.566376"], ["updated_at", "2015-11-02 10:54:22.566376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.568214"], ["updated_at", "2015-11-02 10:54:22.568214"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.572687"], ["updated_at", "2015-11-02 10:54:22.572687"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-02 10:54:22.574417"], ["updated_at", "2015-11-02 10:54:22.574417"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.576764"], ["updated_at", "2015-11-02 10:54:22.576764"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.579132"], ["updated_at", "2015-11-02 10:54:22.579132"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-02 10:54:22.580938"], ["updated_at", "2015-11-02 10:54:22.580938"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.585291"], ["updated_at", "2015-11-02 10:54:22.585291"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 10:54:22.587161"], ["updated_at", "2015-11-02 10:54:22.587161"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.589615"], ["updated_at", "2015-11-02 10:54:22.589615"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-02 10:54:22.600177"], ["updated_at", "2015-11-02 10:54:22.600177"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.604543"], ["updated_at", "2015-11-02 10:54:22.604543"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.607707"], ["updated_at", "2015-11-02 10:54:22.607707"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 10:54:22.612563"], ["updated_at", "2015-11-02 10:54:22.612563"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.615046"], ["updated_at", "2015-11-02 10:54:22.615046"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.617831"], ["updated_at", "2015-11-02 10:54:22.617831"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-02 10:54:22.622260"], ["updated_at", "2015-11-02 10:54:22.622260"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.624927"], ["updated_at", "2015-11-02 10:54:22.624927"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.627684"], ["updated_at", "2015-11-02 10:54:22.627684"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-02 10:54:22.635822"], ["updated_at", "2015-11-02 10:54:22.635822"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.639376"], ["updated_at", "2015-11-02 10:54:22.639376"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.645314"], ["updated_at", "2015-11-02 10:54:22.645314"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-02 10:54:22.653378"], ["updated_at", "2015-11-02 10:54:22.653378"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.656213"], ["updated_at", "2015-11-02 10:54:22.656213"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.658970"], ["updated_at", "2015-11-02 10:54:22.658970"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.663120"], ["updated_at", "2015-11-02 10:54:22.663120"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.667141"], ["updated_at", "2015-11-02 10:54:22.667141"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 10:54:22.668934"], ["updated_at", "2015-11-02 10:54:22.668934"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.671581"], ["updated_at", "2015-11-02 10:54:22.671581"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-02 10:54:22.673288"], ["updated_at", "2015-11-02 10:54:22.673288"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.675561"], ["updated_at", "2015-11-02 10:54:22.675561"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 10:54:22.676833"], ["updated_at", "2015-11-02 10:54:22.676833"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.681145"], ["updated_at", "2015-11-02 10:54:22.681145"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-02 10:54:22.683524"], ["updated_at", "2015-11-02 10:54:22.683524"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.686808"], ["updated_at", "2015-11-02 10:54:22.686808"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.4ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-02 10:54:22.690729"], ["id", 2]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.4ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-02 10:54:22.702289"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-02 10:54:22.705574"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.712704"], ["updated_at", "2015-11-02 10:54:22.712704"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 12.3ms Sent mail to user27@sleede.com (1.4ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563740deb176b_14f833fc1898601d41433c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 10:54:22.728596"], ["updated_at", "2015-11-02 10:54:22.728596"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 10:54:22.730281"], ["updated_at", "2015-11-02 10:54:22.730281"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.731849"], ["updated_at", "2015-11-02 10:54:22.731849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563740deb367b_14f833fc1898601d41442e@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.738181"], ["updated_at", "2015-11-02 10:54:22.738181"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563740deb4de6_14f833fc1898601d4145a0@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 10:54:22.742278"], ["updated_at", "2015-11-02 10:54:22.742278"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 10:54:22.743654"], ["updated_at", "2015-11-02 10:54:22.743654"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.744908"], ["updated_at", "2015-11-02 10:54:22.744908"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563740deb6779_14f833fc1898601d414657@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.751568"], ["updated_at", "2015-11-02 10:54:22.751568"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <563740deb8302_14f833fc1898601d41479b@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 10:54:22.755964"], ["updated_at", "2015-11-02 10:54:22.755964"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 10:54:22.757613"], ["updated_at", "2015-11-02 10:54:22.757613"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.758966"], ["updated_at", "2015-11-02 10:54:22.758966"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.2ms) Date: Mon, 02 Nov 2015 11:54:22 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <563740deb9f3c_14f833fc1898601d4148e6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-02 10:54:22.770729"], ["updated_at", "2015-11-02 10:54:22.770729"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 10:54:22.773028"], ["updated_at", "2015-11-02 10:54:22.773028"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.775723"], ["updated_at", "2015-11-02 10:54:22.775723"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.778078"], ["updated_at", "2015-11-02 10:54:22.778078"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 10:54:22.779552"], ["updated_at", "2015-11-02 10:54:22.779552"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-02 10:54:22.786479"], ["updated_at", "2015-11-02 10:54:22.786479"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 10:54:22.788853"], ["updated_at", "2015-11-02 10:54:22.788853"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 10:54:22.791378"], ["updated_at", "2015-11-02 10:54:22.791378"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 10:54:22.802190"], ["updated_at", "2015-11-02 10:54:22.802190"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-02 10:54:22.805546"], ["updated_at", "2015-11-02 10:54:22.805546"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 10:54:22.811078"], ["updated_at", "2015-11-02 10:54:22.811078"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.8ms)[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 rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-02 11:00:59.794826"], ["updated_at", "2015-11-02 11:00:59.794826"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:00:59.809125"], ["updated_at", "2015-11-02 11:00:59.809125"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:00:59.836265"], ["updated_at", "2015-11-02 11:00:59.836265"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:00:59.855259"], ["updated_at", "2015-11-02 11:00:59.855259"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:00:59.861546"], ["updated_at", "2015-11-02 11:00:59.861546"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.9ms) Completed 200 OK in 32ms (Views: 18.8ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-02 11:00:59.917059"], ["updated_at", "2015-11-02 11:00:59.917059"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:00:59.919375"], ["updated_at", "2015-11-02 11:00:59.919375"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:00:59.923592"], ["updated_at", "2015-11-02 11:00:59.923592"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:00:59.926721"], ["updated_at", "2015-11-02 11:00:59.926721"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:00:59.928680"], ["updated_at", "2015-11-02 11:00:59.928680"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered wupee/api/notifications/_notification.json.jbuilder (5.2ms) Rendered wupee/api/notifications/index.json.jbuilder (13.8ms) Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.4ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-02 11:00:59.964933"], ["updated_at", "2015-11-02 11:00:59.964933"]] [1m[35m (0.6ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:00:59.976781"], ["updated_at", "2015-11-02 11:00:59.976781"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:00:59.981276"], ["updated_at", "2015-11-02 11:00:59.981276"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:00:59.986138"], ["updated_at", "2015-11-02 11:00:59.986138"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:00:59.989555"], ["updated_at", "2015-11-02 11:00:59.989555"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.2ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.5ms) Rendered wupee/api/notifications/_notification.json.jbuilder (8.4ms) Rendered wupee/api/notifications/show.json.jbuilder (11.0ms) Completed 200 OK in 16ms (Views: 12.7ms | ActiveRecord: 0.6ms) [1m[35m (1.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-02 11:01:00.017988"], ["updated_at", "2015-11-02 11:01:00.017988"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:01:00.020582"], ["updated_at", "2015-11-02 11:01:00.020582"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.024558"], ["updated_at", "2015-11-02 11:01:00.024558"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.028857"], ["updated_at", "2015-11-02 11:01:00.028857"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.031291"], ["updated_at", "2015-11-02 11:01:00.031291"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.2ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.1ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered wupee/api/notifications/_notification.json.jbuilder (6.4ms) Rendered wupee/api/notifications/show.json.jbuilder (8.1ms) Completed 200 OK in 19ms (Views: 10.1ms | ActiveRecord: 0.6ms) [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-02 11:01:00.060344"], ["updated_at", "2015-11-02 11:01:00.060344"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.063971"], ["updated_at", "2015-11-02 11:01:00.063971"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.067140"], ["updated_at", "2015-11-02 11:01:00.067140"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.070813"], ["updated_at", "2015-11-02 11:01:00.070813"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.073634"], ["updated_at", "2015-11-02 11:01:00.073634"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 6ms (ActiveRecord: 0.3ms) [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 11:01:00.257054"], ["updated_at", "2015-11-02 11:01:00.257054"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-02 11:01:00.259566"], ["updated_at", "2015-11-02 11:01:00.259566"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.262885"], ["updated_at", "2015-11-02 11:01:00.262885"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.264518"], ["updated_at", "2015-11-02 11:01:00.264518"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.266045"], ["updated_at", "2015-11-02 11:01:00.266045"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 11:01:00.272541"], ["updated_at", "2015-11-02 11:01:00.272541"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-02 11:01:00.274962"], ["updated_at", "2015-11-02 11:01:00.274962"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.277735"], ["updated_at", "2015-11-02 11:01:00.277735"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.279372"], ["updated_at", "2015-11-02 11:01:00.279372"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.281721"], ["updated_at", "2015-11-02 11:01:00.281721"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.5ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 19.8ms Sent mail to user7@sleede.com (8.7ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5637426c4bacc_14fdc3fd5f98601dc789df@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 11:01:00.316668"], ["updated_at", "2015-11-02 11:01:00.316668"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-02 11:01:00.318890"], ["updated_at", "2015-11-02 11:01:00.318890"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.325488"], ["updated_at", "2015-11-02 11:01:00.325488"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:01:00.331985"], ["updated_at", "2015-11-02 11:01:00.331985"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.334353"], ["updated_at", "2015-11-02 11:01:00.334353"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (1.6ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5637426c52741_14fdc3fd5f98601dc79058@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 11:01:00.342397"], ["updated_at", "2015-11-02 11:01:00.342397"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-02 11:01:00.344630"], ["updated_at", "2015-11-02 11:01:00.344630"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.349410"], ["updated_at", "2015-11-02 11:01:00.349410"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.351767"], ["updated_at", "2015-11-02 11:01:00.351767"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.353424"], ["updated_at", "2015-11-02 11:01:00.353424"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user9@sleede.com (1.7ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5637426c5735b_14fdc3fd5f98601dc791fc@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-02 11:01:00.364036"], ["updated_at", "2015-11-02 11:01:00.364036"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-02 11:01:00.367669"], ["updated_at", "2015-11-02 11:01:00.367669"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.372144"], ["updated_at", "2015-11-02 11:01:00.372144"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:01:00.377822"], ["updated_at", "2015-11-02 11:01:00.377822"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.382793"], ["updated_at", "2015-11-02 11:01:00.382793"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user10@sleede.com (1.7ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5637426c5e59e_14fdc3fd5f98601dc792db@mbp-sleede-nicolas.home.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.7ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.390471"], ["updated_at", "2015-11-02 11:01:00.390471"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-02 11:01:00.392274"], ["updated_at", "2015-11-02 11:01:00.392274"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.394803"], ["updated_at", "2015-11-02 11:01:00.394803"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.396949"], ["updated_at", "2015-11-02 11:01:00.396949"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.398530"], ["updated_at", "2015-11-02 11:01:00.398530"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.409788"], ["updated_at", "2015-11-02 11:01:00.409788"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-02 11:01:00.412710"], ["updated_at", "2015-11-02 11:01:00.412710"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.416092"], ["updated_at", "2015-11-02 11:01:00.416092"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.418961"], ["updated_at", "2015-11-02 11:01:00.418961"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-02 11:01:00.420682"], ["updated_at", "2015-11-02 11:01:00.420682"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.428874"], ["updated_at", "2015-11-02 11:01:00.428874"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.433019"], ["updated_at", "2015-11-02 11:01:00.433019"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.435389"], ["updated_at", "2015-11-02 11:01:00.435389"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.442159"], ["updated_at", "2015-11-02 11:01:00.442159"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-02 11:01:00.444895"], ["updated_at", "2015-11-02 11:01:00.444895"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.447932"], ["updated_at", "2015-11-02 11:01:00.447932"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.451186"], ["updated_at", "2015-11-02 11:01:00.451186"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-02 11:01:00.453552"], ["updated_at", "2015-11-02 11:01:00.453552"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.458172"], ["updated_at", "2015-11-02 11:01:00.458172"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.461000"], ["updated_at", "2015-11-02 11:01:00.461000"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.464582"], ["updated_at", "2015-11-02 11:01:00.464582"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.471338"], ["updated_at", "2015-11-02 11:01:00.471338"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-02 11:01:00.476271"], ["updated_at", "2015-11-02 11:01:00.476271"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.482613"], ["updated_at", "2015-11-02 11:01:00.482613"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.487464"], ["updated_at", "2015-11-02 11:01:00.487464"]] [1m[36m (1.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:01:00.509419"], ["updated_at", "2015-11-02 11:01:00.509419"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-02 11:01:00.513025"], ["updated_at", "2015-11-02 11:01:00.513025"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.520748"], ["updated_at", "2015-11-02 11:01:00.520748"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.527676"], ["updated_at", "2015-11-02 11:01:00.527676"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.532871"], ["updated_at", "2015-11-02 11:01:00.532871"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-02 11:01:00.534418"], ["updated_at", "2015-11-02 11:01:00.534418"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.536523"], ["updated_at", "2015-11-02 11:01:00.536523"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.539740"], ["updated_at", "2015-11-02 11:01:00.539740"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-02 11:01:00.542661"], ["updated_at", "2015-11-02 11:01:00.542661"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.546942"], ["updated_at", "2015-11-02 11:01:00.546942"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.549147"], ["updated_at", "2015-11-02 11:01:00.549147"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.551605"], ["updated_at", "2015-11-02 11:01:00.551605"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:01:00.556898"], ["updated_at", "2015-11-02 11:01:00.556898"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-02 11:01:00.561249"], ["updated_at", "2015-11-02 11:01:00.561249"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.567720"], ["updated_at", "2015-11-02 11:01:00.567720"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.570490"], ["updated_at", "2015-11-02 11:01:00.570490"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-02 11:01:00.572448"], ["updated_at", "2015-11-02 11:01:00.572448"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.575674"], ["updated_at", "2015-11-02 11:01:00.575674"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-02 11:01:00.577274"], ["updated_at", "2015-11-02 11:01:00.577274"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.579031"], ["updated_at", "2015-11-02 11:01:00.579031"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-02 11:01:00.583000"], ["updated_at", "2015-11-02 11:01:00.583000"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.585537"], ["updated_at", "2015-11-02 11:01:00.585537"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.588245"], ["updated_at", "2015-11-02 11:01:00.588245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-02 11:01:00.593325"], ["updated_at", "2015-11-02 11:01:00.593325"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.598301"], ["updated_at", "2015-11-02 11:01:00.598301"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.601844"], ["updated_at", "2015-11-02 11:01:00.601844"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.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.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-02 11:01:00.610822"], ["updated_at", "2015-11-02 11:01:00.610822"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.617036"], ["updated_at", "2015-11-02 11:01:00.617036"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.620480"], ["updated_at", "2015-11-02 11:01:00.620480"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-02 11:01:00.627856"], ["updated_at", "2015-11-02 11:01:00.627856"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.631115"], ["updated_at", "2015-11-02 11:01:00.631115"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.636396"], ["updated_at", "2015-11-02 11:01:00.636396"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-02 11:01:00.641117"], ["updated_at", "2015-11-02 11:01:00.641117"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.648790"], ["updated_at", "2015-11-02 11:01:00.648790"]] [1m[35m (0.5ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.658292"], ["updated_at", "2015-11-02 11:01:00.658292"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.670160"], ["updated_at", "2015-11-02 11:01:00.670160"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.676547"], ["updated_at", "2015-11-02 11:01:00.676547"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-02 11:01:00.679755"], ["updated_at", "2015-11-02 11:01:00.679755"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.685798"], ["updated_at", "2015-11-02 11:01:00.685798"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-02 11:01:00.688899"], ["updated_at", "2015-11-02 11:01:00.688899"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.693852"], ["updated_at", "2015-11-02 11:01:00.693852"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-02 11:01:00.696408"], ["updated_at", "2015-11-02 11:01:00.696408"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.704807"], ["updated_at", "2015-11-02 11:01:00.704807"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-02 11:01:00.710600"], ["updated_at", "2015-11-02 11:01:00.710600"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.714832"], ["updated_at", "2015-11-02 11:01:00.714832"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-02 11:01:00.719646"], ["id", 2]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.6ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-02 11:01:00.736310"], ["id", 3]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-02 11:01:00.744727"], ["id", 4]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.756258"], ["updated_at", "2015-11-02 11:01:00.756258"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 15.1ms Sent mail to user27@sleede.com (2.0ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5637426cbd2e4_14fdc3fd5f98601dc7936c@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 11:01:00.777620"], ["updated_at", "2015-11-02 11:01:00.777620"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 11:01:00.780522"], ["updated_at", "2015-11-02 11:01:00.780522"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.783045"], ["updated_at", "2015-11-02 11:01:00.783045"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 2.1ms Sent mail to user30@sleede.com (2.0ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5637426cc054f_14fdc3fd5f98601dc7941d@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.4ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.795540"], ["updated_at", "2015-11-02 11:01:00.795540"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 3.0ms Sent mail to user27@sleede.com (2.1ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5637426cc3c7d_14fdc3fd5f98601dc795c5@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 11:01:00.804231"], ["updated_at", "2015-11-02 11:01:00.804231"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 11:01:00.806895"], ["updated_at", "2015-11-02 11:01:00.806895"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.809578"], ["updated_at", "2015-11-02 11:01:00.809578"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 2.3ms Sent mail to user30@sleede.com (2.2ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5637426cc6dc9_14fdc3fd5f98601dc796a6@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.822588"], ["updated_at", "2015-11-02 11:01:00.822588"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 2.3ms Sent mail to user27@sleede.com (2.1ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5637426cca31d_14fdc3fd5f98601dc79780@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 11:01:00.835860"], ["updated_at", "2015-11-02 11:01:00.835860"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-02 11:01:00.840730"], ["updated_at", "2015-11-02 11:01:00.840730"]] [1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.870120"], ["updated_at", "2015-11-02 11:01:00.870120"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.1ms) [1m[36mSQL (0.3ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 4.5ms Sent mail to user30@sleede.com (11.0ms) Date: Mon, 02 Nov 2015 12:01:00 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5637426cd69bb_14fdc3fd5f98601dc798dc@mbp-sleede-nicolas.home.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.7ms)[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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-02 11:01:00.918902"], ["updated_at", "2015-11-02 11:01:00.918902"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-02 11:01:00.922237"], ["updated_at", "2015-11-02 11:01:00.922237"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.925972"], ["updated_at", "2015-11-02 11:01:00.925972"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.928672"], ["updated_at", "2015-11-02 11:01:00.928672"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-02 11:01:00.933175"], ["updated_at", "2015-11-02 11:01:00.933175"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-02 11:01:00.946392"], ["updated_at", "2015-11-02 11:01:00.946392"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-02 11:01:00.948775"], ["updated_at", "2015-11-02 11:01:00.948775"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-02 11:01:00.951470"], ["updated_at", "2015-11-02 11:01:00.951470"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.3ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-02 11:01:00.971270"], ["updated_at", "2015-11-02 11:01:00.971270"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-02 11:01:00.976024"], ["updated_at", "2015-11-02 11:01:00.976024"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-02 11:01:00.979898"], ["updated_at", "2015-11-02 11:01:00.979898"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.2ms)[0m [1mCREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id")[0m [1m[35m (0.8ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m [1m[35m (0.9ms)[0m CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[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 ('20151029113122') [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150213150625')[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213152846') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m Migrating to CreateWupeeNotificationTypes (20151029113100) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mCREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m SQLite3::SQLException: table "wupee_notification_types" already exists: CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150213150625) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213150625"]] [1m[35m (0.8ms)[0m commit transaction Migrating to CreateMessages (20150213152846) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150213152846"]] [1m[35m (0.8ms)[0m commit transaction Migrating to CreateWupeeNotificationTypes (20151029113100) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "wupee_notification_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_wupee_notification_types_on_name" ON "wupee_notification_types" ("name")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151029113100"]] [1m[36m (2.5ms)[0m [1mcommit transaction[0m Migrating to CreateWupeeNotificationTypeConfigurations (20151029113101) [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.6ms)[0m [1mCREATE TABLE "wupee_notification_type_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_type_id" integer, "receiver_id" integer, "receiver_type" varchar, "value" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m [1m[35m (0.2ms)[0m CREATE INDEX "idx_wupee_notif_type_config_on_notification_type_id" ON "wupee_notification_type_configurations" ("notification_type_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [0m [1m[35m (0.2ms)[0m CREATE INDEX "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id" ON "wupee_notification_type_configurations" ("receiver_type", "receiver_id") [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113101"]] [1m[35m (0.8ms)[0m commit transaction Migrating to CreateWupeeNotifications (20151029113107) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "wupee_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "receiver_id" integer, "receiver_type" varchar, "attached_object_id" integer, "attached_object_type" varchar, "notification_type_id" integer, "is_read" boolean DEFAULT 'f', "is_sent" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151029113107"]] [1m[35m (0.8ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='idx_wupee_notif_type_config_on_notification_type_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_wupee_notification_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_wupee_notification_types_on_name' AND type='index' [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-04 09:18:58.298101"], ["updated_at", "2015-11-04 09:18:58.298101"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.313735"], ["updated_at", "2015-11-04 09:18:58.313735"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.339710"], ["updated_at", "2015-11-04 09:18:58.339710"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.352876"], ["updated_at", "2015-11-04 09:18:58.352876"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.355575"], ["updated_at", "2015-11-04 09:18:58.355575"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 19ms (Views: 11.2ms | ActiveRecord: 0.0ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-04 09:18:58.393793"], ["updated_at", "2015-11-04 09:18:58.393793"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:18:58.396120"], ["updated_at", "2015-11-04 09:18:58.396120"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.398755"], ["updated_at", "2015-11-04 09:18:58.398755"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.401267"], ["updated_at", "2015-11-04 09:18:58.401267"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.403147"], ["updated_at", "2015-11-04 09:18:58.403147"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.4ms) Rendered wupee/api/notifications/_notification.json.jbuilder (4.2ms) Rendered wupee/api/notifications/index.json.jbuilder (13.0ms) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-04 09:18:58.435376"], ["updated_at", "2015-11-04 09:18:58.435376"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:18:58.438158"], ["updated_at", "2015-11-04 09:18:58.438158"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.444081"], ["updated_at", "2015-11-04 09:18:58.444081"]] [1m[36m (0.4ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.452463"], ["updated_at", "2015-11-04 09:18:58.452463"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.454183"], ["updated_at", "2015-11-04 09:18:58.454183"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.9ms) Rendered wupee/api/notifications/show.json.jbuilder (3.1ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms) [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-04 09:18:58.467525"], ["updated_at", "2015-11-04 09:18:58.467525"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:18:58.469996"], ["updated_at", "2015-11-04 09:18:58.469996"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.472277"], ["updated_at", "2015-11-04 09:18:58.472277"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.475005"], ["updated_at", "2015-11-04 09:18:58.475005"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.479005"], ["updated_at", "2015-11-04 09:18:58.479005"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.4ms) Rendered wupee/api/notifications/show.json.jbuilder (2.1ms) Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms) [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-04 09:18:58.500105"], ["updated_at", "2015-11-04 09:18:58.500105"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.502865"], ["updated_at", "2015-11-04 09:18:58.502865"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.505870"], ["updated_at", "2015-11-04 09:18:58.505870"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.508556"], ["updated_at", "2015-11-04 09:18:58.508556"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.510568"], ["updated_at", "2015-11-04 09:18:58.510568"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 3ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:18:58.685053"], ["updated_at", "2015-11-04 09:18:58.685053"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-04 09:18:58.687091"], ["updated_at", "2015-11-04 09:18:58.687091"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.690438"], ["updated_at", "2015-11-04 09:18:58.690438"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.692056"], ["updated_at", "2015-11-04 09:18:58.692056"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.693524"], ["updated_at", "2015-11-04 09:18:58.693524"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:18:58.699565"], ["updated_at", "2015-11-04 09:18:58.699565"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-04 09:18:58.701797"], ["updated_at", "2015-11-04 09:18:58.701797"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.704380"], ["updated_at", "2015-11-04 09:18:58.704380"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.705830"], ["updated_at", "2015-11-04 09:18:58.705830"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.707819"], ["updated_at", "2015-11-04 09:18:58.707819"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 22.3ms [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:18:58.737082"], ["updated_at", "2015-11-04 09:18:58.737082"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-04 09:18:58.739771"], ["updated_at", "2015-11-04 09:18:58.739771"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.742964"], ["updated_at", "2015-11-04 09:18:58.742964"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.744661"], ["updated_at", "2015-11-04 09:18:58.744661"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.746378"], ["updated_at", "2015-11-04 09:18:58.746378"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:18:58.759283"], ["updated_at", "2015-11-04 09:18:58.759283"]] [1m[35m (0.3ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-04 09:18:58.764720"], ["updated_at", "2015-11-04 09:18:58.764720"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.767496"], ["updated_at", "2015-11-04 09:18:58.767496"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.768909"], ["updated_at", "2015-11-04 09:18:58.768909"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.770302"], ["updated_at", "2015-11-04 09:18:58.770302"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:18:58.775527"], ["updated_at", "2015-11-04 09:18:58.775527"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-04 09:18:58.778363"], ["updated_at", "2015-11-04 09:18:58.778363"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.781714"], ["updated_at", "2015-11-04 09:18:58.781714"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.783423"], ["updated_at", "2015-11-04 09:18:58.783423"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.784755"], ["updated_at", "2015-11-04 09:18:58.784755"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 NotificationsMailer#send_mail_for: processed outbound mail in 0.6ms [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.789032"], ["updated_at", "2015-11-04 09:18:58.789032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-04 09:18:58.792348"], ["updated_at", "2015-11-04 09:18:58.792348"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.797546"], ["updated_at", "2015-11-04 09:18:58.797546"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.801064"], ["updated_at", "2015-11-04 09:18:58.801064"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.805830"], ["updated_at", "2015-11-04 09:18:58.805830"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.820130"], ["updated_at", "2015-11-04 09:18:58.820130"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-04 09:18:58.821860"], ["updated_at", "2015-11-04 09:18:58.821860"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.824646"], ["updated_at", "2015-11-04 09:18:58.824646"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.827139"], ["updated_at", "2015-11-04 09:18:58.827139"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-04 09:18:58.829473"], ["updated_at", "2015-11-04 09:18:58.829473"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.832128"], ["updated_at", "2015-11-04 09:18:58.832128"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.833596"], ["updated_at", "2015-11-04 09:18:58.833596"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.835589"], ["updated_at", "2015-11-04 09:18:58.835589"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.838938"], ["updated_at", "2015-11-04 09:18:58.838938"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-04 09:18:58.840816"], ["updated_at", "2015-11-04 09:18:58.840816"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.843372"], ["updated_at", "2015-11-04 09:18:58.843372"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.846404"], ["updated_at", "2015-11-04 09:18:58.846404"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-04 09:18:58.848573"], ["updated_at", "2015-11-04 09:18:58.848573"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.851329"], ["updated_at", "2015-11-04 09:18:58.851329"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.852882"], ["updated_at", "2015-11-04 09:18:58.852882"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.857128"], ["updated_at", "2015-11-04 09:18:58.857128"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.862223"], ["updated_at", "2015-11-04 09:18:58.862223"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-04 09:18:58.864434"], ["updated_at", "2015-11-04 09:18:58.864434"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.866792"], ["updated_at", "2015-11-04 09:18:58.866792"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.874360"], ["updated_at", "2015-11-04 09:18:58.874360"]] [1m[36m (0.1ms)[0m [1mRELEASE 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.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:18:58.884316"], ["updated_at", "2015-11-04 09:18:58.884316"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-04 09:18:58.886291"], ["updated_at", "2015-11-04 09:18:58.886291"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.888782"], ["updated_at", "2015-11-04 09:18:58.888782"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.891103"], ["updated_at", "2015-11-04 09:18:58.891103"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.895999"], ["updated_at", "2015-11-04 09:18:58.895999"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-04 09:18:58.897951"], ["updated_at", "2015-11-04 09:18:58.897951"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.900317"], ["updated_at", "2015-11-04 09:18:58.900317"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.902633"], ["updated_at", "2015-11-04 09:18:58.902633"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-04 09:18:58.904393"], ["updated_at", "2015-11-04 09:18:58.904393"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.906978"], ["updated_at", "2015-11-04 09:18:58.906978"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:58.908810"], ["updated_at", "2015-11-04 09:18:58.908810"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.912781"], ["updated_at", "2015-11-04 09:18:58.912781"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:18:58.917956"], ["updated_at", "2015-11-04 09:18:58.917956"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-04 09:18:58.923611"], ["updated_at", "2015-11-04 09:18:58.923611"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.930547"], ["updated_at", "2015-11-04 09:18:58.930547"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.933214"], ["updated_at", "2015-11-04 09:18:58.933214"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-04 09:18:58.934861"], ["updated_at", "2015-11-04 09:18:58.934861"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:58.937094"], ["updated_at", "2015-11-04 09:18:58.937094"]] [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:18:58.938693"], ["updated_at", "2015-11-04 09:18:58.938693"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:58.940550"], ["updated_at", "2015-11-04 09:18:58.940550"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-04 09:18:58.944070"], ["updated_at", "2015-11-04 09:18:58.944070"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.946788"], ["updated_at", "2015-11-04 09:18:58.946788"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.949507"], ["updated_at", "2015-11-04 09:18:58.949507"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-04 09:18:58.955030"], ["updated_at", "2015-11-04 09:18:58.955030"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.959388"], ["updated_at", "2015-11-04 09:18:58.959388"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.963205"], ["updated_at", "2015-11-04 09:18:58.963205"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-04 09:18:58.971003"], ["updated_at", "2015-11-04 09:18:58.971003"]] [1m[36m (0.4ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.980002"], ["updated_at", "2015-11-04 09:18:58.980002"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.983742"], ["updated_at", "2015-11-04 09:18:58.983742"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-04 09:18:58.990367"], ["updated_at", "2015-11-04 09:18:58.990367"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:58.993438"], ["updated_at", "2015-11-04 09:18:58.993438"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:58.996683"], ["updated_at", "2015-11-04 09:18:58.996683"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-04 09:18:59.000383"], ["updated_at", "2015-11-04 09:18:59.000383"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.002888"], ["updated_at", "2015-11-04 09:18:59.002888"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:59.009578"], ["updated_at", "2015-11-04 09:18:59.009578"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.014628"], ["updated_at", "2015-11-04 09:18:59.014628"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.019111"], ["updated_at", "2015-11-04 09:18:59.019111"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-04 09:18:59.026400"], ["updated_at", "2015-11-04 09:18:59.026400"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.032696"], ["updated_at", "2015-11-04 09:18:59.032696"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-04 09:18:59.034575"], ["updated_at", "2015-11-04 09:18:59.034575"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.037126"], ["updated_at", "2015-11-04 09:18:59.037126"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-04 09:18:59.039123"], ["updated_at", "2015-11-04 09:18:59.039123"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.041958"], ["updated_at", "2015-11-04 09:18:59.041958"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-04 09:18:59.043668"], ["updated_at", "2015-11-04 09:18:59.043668"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.046747"], ["updated_at", "2015-11-04 09:18:59.046747"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-04 09:18:59.051981"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-04 09:18:59.057926"], ["id", 3]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-04 09:18:59.064939"], ["id", 4]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.079372"], ["updated_at", "2015-11-04 09:18:59.079372"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (1.4ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 13.1ms Sent mail to user27@sleede.com (7.3ms) Date: Wed, 04 Nov 2015 10:18:59 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5639cd83181ae_66d93ff1b9c521d83925f@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.102908"], ["updated_at", "2015-11-04 09:18:59.102908"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.104706"], ["updated_at", "2015-11-04 09:18:59.104706"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.106173"], ["updated_at", "2015-11-04 09:18:59.106173"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user30@sleede.com (1.2ms) Date: Wed, 04 Nov 2015 10:18:59 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5639cd831aa5d_66d93ff1b9c521d8393a@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.113383"], ["updated_at", "2015-11-04 09:18:59.113383"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Wed, 04 Nov 2015 10:18:59 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5639cd831c5ee_66d93ff1b9c521d8394f@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.118278"], ["updated_at", "2015-11-04 09:18:59.118278"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.120001"], ["updated_at", "2015-11-04 09:18:59.120001"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.121424"], ["updated_at", "2015-11-04 09:18:59.121424"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.3ms) Date: Wed, 04 Nov 2015 10:18:59 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5639cd831e4ca_66d93ff1b9c521d8395ac@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.127924"], ["updated_at", "2015-11-04 09:18:59.127924"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.3ms) Date: Wed, 04 Nov 2015 10:18:59 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5639cd831ff05_66d93ff1b9c521d8396a1@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.132304"], ["updated_at", "2015-11-04 09:18:59.132304"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:18:59.133698"], ["updated_at", "2015-11-04 09:18:59.133698"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.135072"], ["updated_at", "2015-11-04 09:18:59.135072"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.2ms) Date: Wed, 04 Nov 2015 10:18:59 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5639cd8321ae4_66d93ff1b9c521d839744@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.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.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-04 09:18:59.147463"], ["updated_at", "2015-11-04 09:18:59.147463"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:18:59.149864"], ["updated_at", "2015-11-04 09:18:59.149864"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.152462"], ["updated_at", "2015-11-04 09:18:59.152462"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:59.155088"], ["updated_at", "2015-11-04 09:18:59.155088"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:18:59.156611"], ["updated_at", "2015-11-04 09:18:59.156611"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-04 09:18:59.163665"], ["updated_at", "2015-11-04 09:18:59.163665"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:18:59.166208"], ["updated_at", "2015-11-04 09:18:59.166208"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:18:59.168789"], ["updated_at", "2015-11-04 09:18:59.168789"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:18:59.180694"], ["updated_at", "2015-11-04 09:18:59.180694"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-04 09:18:59.184131"], ["updated_at", "2015-11-04 09:18:59.184131"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:18:59.193320"], ["updated_at", "2015-11-04 09:18:59.193320"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-04 09:19:44.635680"], ["updated_at", "2015-11-04 09:19:44.635680"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.645849"], ["updated_at", "2015-11-04 09:19:44.645849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.658677"], ["updated_at", "2015-11-04 09:19:44.658677"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.670770"], ["updated_at", "2015-11-04 09:19:44.670770"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.673976"], ["updated_at", "2015-11-04 09:19:44.673976"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 0.0ms) [1m[35m (8.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-04 09:19:44.718738"], ["updated_at", "2015-11-04 09:19:44.718738"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:44.721271"], ["updated_at", "2015-11-04 09:19:44.721271"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.724167"], ["updated_at", "2015-11-04 09:19:44.724167"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.726930"], ["updated_at", "2015-11-04 09:19:44.726930"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.728547"], ["updated_at", "2015-11-04 09:19:44.728547"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.3ms) Rendered wupee/api/notifications/index.json.jbuilder (8.8ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.3ms) [1m[35m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-04 09:19:44.755540"], ["updated_at", "2015-11-04 09:19:44.755540"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:44.758207"], ["updated_at", "2015-11-04 09:19:44.758207"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.761805"], ["updated_at", "2015-11-04 09:19:44.761805"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.764848"], ["updated_at", "2015-11-04 09:19:44.764848"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.766517"], ["updated_at", "2015-11-04 09:19:44.766517"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.3ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.3ms) Rendered wupee/api/notifications/show.json.jbuilder (3.8ms) Completed 200 OK in 12ms (Views: 5.6ms | ActiveRecord: 0.4ms) [1m[35m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-04 09:19:44.788918"], ["updated_at", "2015-11-04 09:19:44.788918"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:44.791022"], ["updated_at", "2015-11-04 09:19:44.791022"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.793231"], ["updated_at", "2015-11-04 09:19:44.793231"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.795698"], ["updated_at", "2015-11-04 09:19:44.795698"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.797441"], ["updated_at", "2015-11-04 09:19:44.797441"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.1ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.4ms) Rendered wupee/api/notifications/show.json.jbuilder (2.1ms) Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms) [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-04 09:19:44.811128"], ["updated_at", "2015-11-04 09:19:44.811128"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.813534"], ["updated_at", "2015-11-04 09:19:44.813534"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:44.816574"], ["updated_at", "2015-11-04 09:19:44.816574"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:44.819945"], ["updated_at", "2015-11-04 09:19:44.819945"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.821752"], ["updated_at", "2015-11-04 09:19:44.821752"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.3ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 7ms (ActiveRecord: 0.4ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:19:44.989595"], ["updated_at", "2015-11-04 09:19:44.989595"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-04 09:19:44.991799"], ["updated_at", "2015-11-04 09:19:44.991799"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:44.994745"], ["updated_at", "2015-11-04 09:19:44.994745"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:44.996756"], ["updated_at", "2015-11-04 09:19:44.996756"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:44.998528"], ["updated_at", "2015-11-04 09:19:44.998528"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:19:45.004738"], ["updated_at", "2015-11-04 09:19:45.004738"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-04 09:19:45.007063"], ["updated_at", "2015-11-04 09:19:45.007063"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.010141"], ["updated_at", "2015-11-04 09:19:45.010141"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.011823"], ["updated_at", "2015-11-04 09:19:45.011823"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.013589"], ["updated_at", "2015-11-04 09:19:45.013589"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.5ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 17.0ms Sent mail to user7@sleede.com (7.4ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5639cdb18fb1_66e53fcc9d0601e032812@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.044681"], ["updated_at", "2015-11-04 09:19:45.044681"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-04 09:19:45.047405"], ["updated_at", "2015-11-04 09:19:45.047405"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.050761"], ["updated_at", "2015-11-04 09:19:45.050761"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:45.052744"], ["updated_at", "2015-11-04 09:19:45.052744"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.060240"], ["updated_at", "2015-11-04 09:19:45.060240"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.7ms Sent mail to user8@sleede.com (1.6ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5639cdb110213_66e53fcc9d0601e032950@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:19:45.070842"], ["updated_at", "2015-11-04 09:19:45.070842"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-04 09:19:45.073284"], ["updated_at", "2015-11-04 09:19:45.073284"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.076458"], ["updated_at", "2015-11-04 09:19:45.076458"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.078685"], ["updated_at", "2015-11-04 09:19:45.078685"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.080407"], ["updated_at", "2015-11-04 09:19:45.080407"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user9@sleede.com (1.9ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5639cdb1146e2_66e53fcc9d0601e033012@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-04 09:19:45.088630"], ["updated_at", "2015-11-04 09:19:45.088630"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-04 09:19:45.092202"], ["updated_at", "2015-11-04 09:19:45.092202"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.095626"], ["updated_at", "2015-11-04 09:19:45.095626"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:45.098134"], ["updated_at", "2015-11-04 09:19:45.098134"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.100178"], ["updated_at", "2015-11-04 09:19:45.100178"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 3.5ms Sent mail to user10@sleede.com (4.1ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5639cdb11a332_66e53fcc9d0601e0331d5@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.114705"], ["updated_at", "2015-11-04 09:19:45.114705"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-04 09:19:45.116805"], ["updated_at", "2015-11-04 09:19:45.116805"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.119933"], ["updated_at", "2015-11-04 09:19:45.119933"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.122682"], ["updated_at", "2015-11-04 09:19:45.122682"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.124416"], ["updated_at", "2015-11-04 09:19:45.124416"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.133960"], ["updated_at", "2015-11-04 09:19:45.133960"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-04 09:19:45.135621"], ["updated_at", "2015-11-04 09:19:45.135621"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.138164"], ["updated_at", "2015-11-04 09:19:45.138164"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.140370"], ["updated_at", "2015-11-04 09:19:45.140370"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-04 09:19:45.142024"], ["updated_at", "2015-11-04 09:19:45.142024"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.144838"], ["updated_at", "2015-11-04 09:19:45.144838"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.146279"], ["updated_at", "2015-11-04 09:19:45.146279"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.149944"], ["updated_at", "2015-11-04 09:19:45.149944"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.0ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.154566"], ["updated_at", "2015-11-04 09:19:45.154566"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-04 09:19:45.156539"], ["updated_at", "2015-11-04 09:19:45.156539"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.163344"], ["updated_at", "2015-11-04 09:19:45.163344"]] [1m[36m (0.2ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.170618"], ["updated_at", "2015-11-04 09:19:45.170618"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-04 09:19:45.172550"], ["updated_at", "2015-11-04 09:19:45.172550"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.174908"], ["updated_at", "2015-11-04 09:19:45.174908"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.176226"], ["updated_at", "2015-11-04 09:19:45.176226"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.178301"], ["updated_at", "2015-11-04 09:19:45.178301"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.8ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.181704"], ["updated_at", "2015-11-04 09:19:45.181704"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-04 09:19:45.183549"], ["updated_at", "2015-11-04 09:19:45.183549"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.185782"], ["updated_at", "2015-11-04 09:19:45.185782"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.188186"], ["updated_at", "2015-11-04 09:19:45.188186"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:45.194652"], ["updated_at", "2015-11-04 09:19:45.194652"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-04 09:19:45.196877"], ["updated_at", "2015-11-04 09:19:45.196877"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.200709"], ["updated_at", "2015-11-04 09:19:45.200709"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.204393"], ["updated_at", "2015-11-04 09:19:45.204393"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.213862"], ["updated_at", "2015-11-04 09:19:45.213862"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-04 09:19:45.219327"], ["updated_at", "2015-11-04 09:19:45.219327"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.222219"], ["updated_at", "2015-11-04 09:19:45.222219"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.224906"], ["updated_at", "2015-11-04 09:19:45.224906"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-04 09:19:45.226501"], ["updated_at", "2015-11-04 09:19:45.226501"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.228734"], ["updated_at", "2015-11-04 09:19:45.228734"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.230377"], ["updated_at", "2015-11-04 09:19:45.230377"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.232373"], ["updated_at", "2015-11-04 09:19:45.232373"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:45.236544"], ["updated_at", "2015-11-04 09:19:45.236544"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-04 09:19:45.238443"], ["updated_at", "2015-11-04 09:19:45.238443"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.240994"], ["updated_at", "2015-11-04 09:19:45.240994"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.243628"], ["updated_at", "2015-11-04 09:19:45.243628"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-04 09:19:45.245305"], ["updated_at", "2015-11-04 09:19:45.245305"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.250043"], ["updated_at", "2015-11-04 09:19:45.250043"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-04 09:19:45.252415"], ["updated_at", "2015-11-04 09:19:45.252415"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.255803"], ["updated_at", "2015-11-04 09:19:45.255803"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-04 09:19:45.263821"], ["updated_at", "2015-11-04 09:19:45.263821"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.270138"], ["updated_at", "2015-11-04 09:19:45.270138"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.273203"], ["updated_at", "2015-11-04 09:19:45.273203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-04 09:19:45.278544"], ["updated_at", "2015-11-04 09:19:45.278544"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.281190"], ["updated_at", "2015-11-04 09:19:45.281190"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.284195"], ["updated_at", "2015-11-04 09:19:45.284195"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-04 09:19:45.289170"], ["updated_at", "2015-11-04 09:19:45.289170"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.291740"], ["updated_at", "2015-11-04 09:19:45.291740"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.295445"], ["updated_at", "2015-11-04 09:19:45.295445"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-04 09:19:45.305868"], ["updated_at", "2015-11-04 09:19:45.305868"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.7ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.311509"], ["updated_at", "2015-11-04 09:19:45.311509"]] [1m[35m (0.4ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.319882"], ["updated_at", "2015-11-04 09:19:45.319882"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-04 09:19:45.323625"], ["updated_at", "2015-11-04 09:19:45.323625"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.326680"], ["updated_at", "2015-11-04 09:19:45.326680"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.329909"], ["updated_at", "2015-11-04 09:19:45.329909"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.334128"], ["updated_at", "2015-11-04 09:19:45.334128"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.338449"], ["updated_at", "2015-11-04 09:19:45.338449"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-04 09:19:45.340359"], ["updated_at", "2015-11-04 09:19:45.340359"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.342991"], ["updated_at", "2015-11-04 09:19:45.342991"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-04 09:19:45.344436"], ["updated_at", "2015-11-04 09:19:45.344436"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.349164"], ["updated_at", "2015-11-04 09:19:45.349164"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-04 09:19:45.352384"], ["updated_at", "2015-11-04 09:19:45.352384"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.356138"], ["updated_at", "2015-11-04 09:19:45.356138"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-04 09:19:45.358444"], ["updated_at", "2015-11-04 09:19:45.358444"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.361022"], ["updated_at", "2015-11-04 09:19:45.361022"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-04 09:19:45.364689"], ["id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-04 09:19:45.368043"], ["id", 3]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.5ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.3ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-04 09:19:45.381190"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.388303"], ["updated_at", "2015-11-04 09:19:45.388303"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 10.8ms Sent mail to user27@sleede.com (1.3ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5639cdb161ec6_66e53fcc9d0601e033286@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.402722"], ["updated_at", "2015-11-04 09:19:45.402722"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.404405"], ["updated_at", "2015-11-04 09:19:45.404405"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.405712"], ["updated_at", "2015-11-04 09:19:45.405712"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 4]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user30@sleede.com (1.3ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5639cdb163aae_66e53fcc9d0601e0333c3@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.411806"], ["updated_at", "2015-11-04 09:19:45.411806"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user27@sleede.com (1.3ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5639cdb1652bc_66e53fcc9d0601e0334cc@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.416026"], ["updated_at", "2015-11-04 09:19:45.416026"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.417478"], ["updated_at", "2015-11-04 09:19:45.417478"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.418856"], ["updated_at", "2015-11-04 09:19:45.418856"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 8]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user30@sleede.com (1.3ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5639cdb166f34_66e53fcc9d0601e0335dc@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.425476"], ["updated_at", "2015-11-04 09:19:45.425476"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user27@sleede.com (1.2ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5639cdb1689df_66e53fcc9d0601e0336f6@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.429983"], ["updated_at", "2015-11-04 09:19:45.429983"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-04 09:19:45.431431"], ["updated_at", "2015-11-04 09:19:45.431431"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.433086"], ["updated_at", "2015-11-04 09:19:45.433086"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 12]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user30@sleede.com (1.3ms) Date: Wed, 04 Nov 2015 10:19:45 +0100 From: contact@sleede.com To: user30@sleede.com Message-ID: <5639cdb16a663_66e53fcc9d0601e033758@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [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.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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-04 09:19:45.444759"], ["updated_at", "2015-11-04 09:19:45.444759"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-04 09:19:45.447507"], ["updated_at", "2015-11-04 09:19:45.447507"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.450781"], ["updated_at", "2015-11-04 09:19:45.450781"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.456184"], ["updated_at", "2015-11-04 09:19:45.456184"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-04 09:19:45.458317"], ["updated_at", "2015-11-04 09:19:45.458317"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-04 09:19:45.466520"], ["updated_at", "2015-11-04 09:19:45.466520"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.3ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-04 09:19:45.471099"], ["updated_at", "2015-11-04 09:19:45.471099"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-04 09:19:45.476565"], ["updated_at", "2015-11-04 09:19:45.476565"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-04 09:19:45.492903"], ["updated_at", "2015-11-04 09:19:45.492903"]] [1m[35m (0.2ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-04 09:19:45.498972"], ["updated_at", "2015-11-04 09:19:45.498972"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-04 09:19:45.501667"], ["updated_at", "2015-11-04 09:19:45.501667"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user1@sleede.com"], ["name", "user1"], ["created_at", "2015-11-24 08:57:46.375553"], ["updated_at", "2015-11-24 08:57:46.375553"]] [1m[36m (0.5ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.390273"], ["updated_at", "2015-11-24 08:57:46.390273"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.2ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.409042"], ["updated_at", "2015-11-24 08:57:46.409042"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.424319"], ["updated_at", "2015-11-24 08:57:46.424319"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.427989"], ["updated_at", "2015-11-24 08:57:46.427989"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#index as JSON Rendered wupee/api/notifications/index.json.jbuilder (0.2ms) Completed 200 OK in 18ms (Views: 11.0ms | ActiveRecord: 0.0ms) [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user2@sleede.com"], ["name", "user2"], ["created_at", "2015-11-24 08:57:46.466720"], ["updated_at", "2015-11-24 08:57:46.466720"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.468770"], ["updated_at", "2015-11-24 08:57:46.468770"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.471088"], ["updated_at", "2015-11-24 08:57:46.471088"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.473356"], ["updated_at", "2015-11-24 08:57:46.473356"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.474863"], ["updated_at", "2015-11-24 08:57:46.474863"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#index as JSON [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.3ms) Rendered wupee/api/notifications/_notification.json.jbuilder (3.8ms) Rendered wupee/api/notifications/index.json.jbuilder (12.0ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.3ms) [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user3@sleede.com"], ["name", "user3"], ["created_at", "2015-11-24 08:57:46.496657"], ["updated_at", "2015-11-24 08:57:46.496657"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.498726"], ["updated_at", "2015-11-24 08:57:46.498726"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.501317"], ["updated_at", "2015-11-24 08:57:46.501317"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.503964"], ["updated_at", "2015-11-24 08:57:46.503964"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.514462"], ["updated_at", "2015-11-24 08:57:46.514462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#show as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mMessage Load (0.1ms)[0m SELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.2ms) Rendered wupee/api/notifications/_notification.json.jbuilder (2.7ms) Rendered wupee/api/notifications/show.json.jbuilder (4.6ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.3ms) [1m[35m (1.0ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user4@sleede.com"], ["name", "user4"], ["created_at", "2015-11-24 08:57:46.530395"], ["updated_at", "2015-11-24 08:57:46.530395"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.532605"], ["updated_at", "2015-11-24 08:57:46.532605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.535041"], ["updated_at", "2015-11-24 08:57:46.535041"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.537510"], ["updated_at", "2015-11-24 08:57:46.537510"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.539562"], ["updated_at", "2015-11-24 08:57:46.539562"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by Wupee::Api::NotificationsController#update as JSON Parameters: {"id"=>"1"} [1m[36mWupee::Notification Load (0.1ms)[0m [1mSELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."id" = ? LIMIT 1[0m [["receiver_id", 1], ["receiver_type", "User"], ["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36mMessage Load (0.0ms)[0m [1mSELECT "messages".* FROM "messages" WHERE "messages"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] Rendered wupee/api/notifications/_notify_new_message.json.jbuilder (0.0ms) Rendered wupee/api/notifications/_notification.json.jbuilder (1.2ms) Rendered wupee/api/notifications/show.json.jbuilder (1.7ms) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms) [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user5@sleede.com"], ["name", "user5"], ["created_at", "2015-11-24 08:57:46.551402"], ["updated_at", "2015-11-24 08:57:46.551402"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.553414"], ["updated_at", "2015-11-24 08:57:46.553414"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.555589"], ["updated_at", "2015-11-24 08:57:46.555589"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.557794"], ["updated_at", "2015-11-24 08:57:46.557794"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.559344"], ["updated_at", "2015-11-24 08:57:46.559344"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by Wupee::Api::NotificationsController#update_all as JSON [1m[35mWupee::Notification Load (0.2ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? AND "wupee_notifications"."is_read" = ? ORDER BY "wupee_notifications"."id" ASC LIMIT 1000 [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]] [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] Completed 204 No Content in 2ms (ActiveRecord: 0.2ms) [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-24 08:57:46.745104"], ["updated_at", "2015-11-24 08:57:46.745104"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user6@sleede.com"], ["name", "user6"], ["created_at", "2015-11-24 08:57:46.747415"], ["updated_at", "2015-11-24 08:57:46.747415"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.750539"], ["updated_at", "2015-11-24 08:57:46.750539"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.752090"], ["updated_at", "2015-11-24 08:57:46.752090"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.753504"], ["updated_at", "2015-11-24 08:57:46.753504"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-24 08:57:46.760141"], ["updated_at", "2015-11-24 08:57:46.760141"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user7@sleede.com"], ["name", "user7"], ["created_at", "2015-11-24 08:57:46.762081"], ["updated_at", "2015-11-24 08:57:46.762081"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.764859"], ["updated_at", "2015-11-24 08:57:46.764859"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.766379"], ["updated_at", "2015-11-24 08:57:46.766379"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.767722"], ["updated_at", "2015-11-24 08:57:46.767722"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (1.2ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 17.0ms Sent mail to user7@sleede.com (7.0ms) Date: Tue, 24 Nov 2015 09:57:46 +0100 From: contact@sleede.com To: user7@sleede.com Message-ID: <5654268ac12d1_108ca3ffab90601dc512f2@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-24 08:57:46.799288"], ["updated_at", "2015-11-24 08:57:46.799288"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user8@sleede.com"], ["name", "user8"], ["created_at", "2015-11-24 08:57:46.801336"], ["updated_at", "2015-11-24 08:57:46.801336"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.803848"], ["updated_at", "2015-11-24 08:57:46.803848"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.805232"], ["updated_at", "2015-11-24 08:57:46.805232"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.807117"], ["updated_at", "2015-11-24 08:57:46.807117"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.4ms Sent mail to user8@sleede.com (1.2ms) Date: Tue, 24 Nov 2015 09:57:46 +0100 From: contact@sleede.com To: user8@sleede.com Message-ID: <5654268ac5c94_108ca3ffab90601dc51393@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-24 08:57:46.814315"], ["updated_at", "2015-11-24 08:57:46.814315"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user9@sleede.com"], ["name", "user9"], ["created_at", "2015-11-24 08:57:46.816513"], ["updated_at", "2015-11-24 08:57:46.816513"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.819176"], ["updated_at", "2015-11-24 08:57:46.819176"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.820577"], ["updated_at", "2015-11-24 08:57:46.820577"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.822061"], ["updated_at", "2015-11-24 08:57:46.822061"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/abc.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 1.3ms Sent mail to user9@sleede.com (1.6ms) Date: Tue, 24 Nov 2015 09:57:46 +0100 From: contact@sleede.com To: user9@sleede.com Message-ID: <5654268ac9860_108ca3ffab90601dc51431@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "abc"], ["created_at", "2015-11-24 08:57:46.829832"], ["updated_at", "2015-11-24 08:57:46.829832"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user10@sleede.com"], ["name", "user10"], ["created_at", "2015-11-24 08:57:46.832169"], ["updated_at", "2015-11-24 08:57:46.832169"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.836132"], ["updated_at", "2015-11-24 08:57:46.836132"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.839096"], ["updated_at", "2015-11-24 08:57:46.839096"]] [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 INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.841522"], ["updated_at", "2015-11-24 08:57:46.841522"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/abc.html.erb (0.1ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 2.9ms Sent mail to user10@sleede.com (3.1ms) Date: Tue, 24 Nov 2015 09:57:46 +0100 From: contact@sleede.com To: user10@sleede.com Message-ID: <5654268acecdf_108ca3ffab90601dc515e6@MBP-sleede-Nicolas.local.mail> Subject: abc hello world Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (1.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.856040"], ["updated_at", "2015-11-24 08:57:46.856040"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user11@sleede.com"], ["name", "user11"], ["created_at", "2015-11-24 08:57:46.858245"], ["updated_at", "2015-11-24 08:57:46.858245"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.861258"], ["updated_at", "2015-11-24 08:57:46.861258"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.864093"], ["updated_at", "2015-11-24 08:57:46.864093"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.865623"], ["updated_at", "2015-11-24 08:57:46.865623"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.1ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."attached_object_id" = ? AND "wupee_notifications"."attached_object_type" = ? [["attached_object_id", 1], ["attached_object_type", "Message"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "messages" WHERE "messages"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.875119"], ["updated_at", "2015-11-24 08:57:46.875119"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user12@sleede.com"], ["name", "user12"], ["created_at", "2015-11-24 08:57:46.876754"], ["updated_at", "2015-11-24 08:57:46.876754"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.878974"], ["updated_at", "2015-11-24 08:57:46.878974"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.881330"], ["updated_at", "2015-11-24 08:57:46.881330"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user13@sleede.com"], ["name", "user13"], ["created_at", "2015-11-24 08:57:46.882799"], ["updated_at", "2015-11-24 08:57:46.882799"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.885378"], ["updated_at", "2015-11-24 08:57:46.885378"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.886822"], ["updated_at", "2015-11-24 08:57:46.886822"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.889121"], ["updated_at", "2015-11-24 08:57:46.889121"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_read" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (0.9ms)[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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.893647"], ["updated_at", "2015-11-24 08:57:46.893647"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user14@sleede.com"], ["name", "user14"], ["created_at", "2015-11-24 08:57:46.895559"], ["updated_at", "2015-11-24 08:57:46.895559"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.897741"], ["updated_at", "2015-11-24 08:57:46.897741"]] [1m[36m (0.0ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.899874"], ["updated_at", "2015-11-24 08:57:46.899874"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user15@sleede.com"], ["name", "user15"], ["created_at", "2015-11-24 08:57:46.901250"], ["updated_at", "2015-11-24 08:57:46.901250"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.904059"], ["updated_at", "2015-11-24 08:57:46.904059"]] [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.905804"], ["updated_at", "2015-11-24 08:57:46.905804"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.907820"], ["updated_at", "2015-11-24 08:57:46.907820"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.914656"], ["updated_at", "2015-11-24 08:57:46.914656"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user16@sleede.com"], ["name", "user16"], ["created_at", "2015-11-24 08:57:46.921240"], ["updated_at", "2015-11-24 08:57:46.921240"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.924170"], ["updated_at", "2015-11-24 08:57:46.924170"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.926794"], ["updated_at", "2015-11-24 08:57:46.926794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.932902"], ["updated_at", "2015-11-24 08:57:46.932902"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user17@sleede.com"], ["name", "user17"], ["created_at", "2015-11-24 08:57:46.934826"], ["updated_at", "2015-11-24 08:57:46.934826"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.937347"], ["updated_at", "2015-11-24 08:57:46.937347"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.939655"], ["updated_at", "2015-11-24 08:57:46.939655"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.943814"], ["updated_at", "2015-11-24 08:57:46.943814"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user18@sleede.com"], ["name", "user18"], ["created_at", "2015-11-24 08:57:46.945740"], ["updated_at", "2015-11-24 08:57:46.945740"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.948391"], ["updated_at", "2015-11-24 08:57:46.948391"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.950529"], ["updated_at", "2015-11-24 08:57:46.950529"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user19@sleede.com"], ["name", "user19"], ["created_at", "2015-11-24 08:57:46.952788"], ["updated_at", "2015-11-24 08:57:46.952788"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.956485"], ["updated_at", "2015-11-24 08:57:46.956485"]] [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 INSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:46.958694"], ["updated_at", "2015-11-24 08:57:46.958694"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.1ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.963205"], ["updated_at", "2015-11-24 08:57:46.963205"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.972865"], ["updated_at", "2015-11-24 08:57:46.972865"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user20@sleede.com"], ["name", "user20"], ["created_at", "2015-11-24 08:57:46.974707"], ["updated_at", "2015-11-24 08:57:46.974707"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.977311"], ["updated_at", "2015-11-24 08:57:46.977311"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.979835"], ["updated_at", "2015-11-24 08:57:46.979835"]] [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user21@sleede.com"], ["name", "user21"], ["created_at", "2015-11-24 08:57:46.981657"], ["updated_at", "2015-11-24 08:57:46.981657"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:46.984202"], ["updated_at", "2015-11-24 08:57:46.984202"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["body", "message body"], ["created_at", "2015-11-24 08:57:46.985687"], ["updated_at", "2015-11-24 08:57:46.985687"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1[0m [["name", "notify_new_message"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["attached_object_id", 2], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:46.987445"], ["updated_at", "2015-11-24 08:57:46.987445"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.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.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user22@sleede.com"], ["name", "user22"], ["created_at", "2015-11-24 08:57:46.991574"], ["updated_at", "2015-11-24 08:57:46.991574"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:46.994003"], ["updated_at", "2015-11-24 08:57:46.994003"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:46.996628"], ["updated_at", "2015-11-24 08:57:46.996628"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1[0m [1m[35m (0.7ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user23@sleede.com"], ["name", "user23"], ["created_at", "2015-11-24 08:57:47.001422"], ["updated_at", "2015-11-24 08:57:47.001422"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.004028"], ["updated_at", "2015-11-24 08:57:47.004028"]] [1m[36m (0.1ms)[0m [1mSELECT "users"."id" FROM "users"[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:47.007307"], ["updated_at", "2015-11-24 08:57:47.007307"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" IS NULL AND "wupee_notification_type_configurations"."receiver_id" IS NULL) LIMIT 1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user24@sleede.com"], ["name", "user24"], ["created_at", "2015-11-24 08:57:47.013285"], ["updated_at", "2015-11-24 08:57:47.013285"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.0ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.015448"], ["updated_at", "2015-11-24 08:57:47.015448"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:47.017739"], ["updated_at", "2015-11-24 08:57:47.017739"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (1.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.9ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user25@sleede.com"], ["name", "user25"], ["created_at", "2015-11-24 08:57:47.024659"], ["updated_at", "2015-11-24 08:57:47.024659"]] [1m[36m (0.2ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.4ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.034095"], ["updated_at", "2015-11-24 08:57:47.034095"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:47.038740"], ["updated_at", "2015-11-24 08:57:47.038740"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user26@sleede.com"], ["name", "user26"], ["created_at", "2015-11-24 08:57:47.045316"], ["updated_at", "2015-11-24 08:57:47.045316"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.048128"], ["updated_at", "2015-11-24 08:57:47.048128"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:47.050798"], ["updated_at", "2015-11-24 08:57:47.050798"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.055971"], ["updated_at", "2015-11-24 08:57:47.055971"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [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[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.060276"], ["updated_at", "2015-11-24 08:57:47.060276"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [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 "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user27@sleede.com"], ["name", "user27"], ["created_at", "2015-11-24 08:57:47.062286"], ["updated_at", "2015-11-24 08:57:47.062286"]] [1m[35m (0.1ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.1ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:47.066022"], ["updated_at", "2015-11-24 08:57:47.066022"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user28@sleede.com"], ["name", "user28"], ["created_at", "2015-11-24 08:57:47.068243"], ["updated_at", "2015-11-24 08:57:47.068243"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:47.071573"], ["updated_at", "2015-11-24 08:57:47.071573"]] [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 [1mINSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["email", "user29@sleede.com"], ["name", "user29"], ["created_at", "2015-11-24 08:57:47.073552"], ["updated_at", "2015-11-24 08:57:47.073552"]] [1m[35m (0.2ms)[0m SELECT "wupee_notification_types"."id" FROM "wupee_notification_types" [1m[36mWupee::NotificationType Load (0.2ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_id", 3], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:47.082688"], ["updated_at", "2015-11-24 08:57:47.082688"]] [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 INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user30@sleede.com"], ["name", "user30"], ["created_at", "2015-11-24 08:57:47.086139"], ["updated_at", "2015-11-24 08:57:47.086139"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 4], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:47.088844"], ["updated_at", "2015-11-24 08:57:47.088844"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 2 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 2 AND "wupee_notification_type_configurations"."receiver_id" = 2) LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 1], ["updated_at", "2015-11-24 08:57:47.093259"], ["id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.1ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 3 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mWupee::NotificationType Load (0.0ms)[0m [1mSELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 3 AND "wupee_notification_type_configurations"."receiver_id" = 3) LIMIT 1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ? [["value", 2], ["updated_at", "2015-11-24 08:57:47.098125"], ["id", 3]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" = 4 AND "wupee_notification_type_configurations"."notification_type_id" = 1 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."id" != 4 AND "wupee_notification_type_configurations"."receiver_id" = 4) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notification_type_configurations" SET "value" = ?, "updated_at" = ? WHERE "wupee_notification_type_configurations"."id" = ?[0m [["value", 3], ["updated_at", "2015-11-24 08:57:47.101389"], ["id", 4]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mWupee::NotificationTypeConfiguration Load (0.2ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:47.109769"], ["updated_at", "2015-11-24 08:57:47.109769"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.3ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 1]] NotificationsMailer#send_mail_for: processed outbound mail in 13.5ms Sent mail to user27@sleede.com (1.4ms) Date: Tue, 24 Nov 2015 09:57:47 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5654268b1e927_108ca3ffab90601dc5166a@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-24 08:57:47.126865"], ["updated_at", "2015-11-24 08:57:47.126865"]] [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 [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-24 08:57:47.128727"], ["updated_at", "2015-11-24 08:57:47.128727"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 3]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user29@sleede.com (1.2ms) Date: Tue, 24 Nov 2015 09:57:47 +0100 From: contact@sleede.com To: user29@sleede.com Message-ID: <5654268b201aa_108ca3ffab90601dc517e7@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:47.132902"], ["updated_at", "2015-11-24 08:57:47.132902"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ?[0m [["is_read", "t"]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:47.136400"], ["updated_at", "2015-11-24 08:57:47.136400"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.0ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 5]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.2ms) Date: Tue, 24 Nov 2015 09:57:47 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5654268b21f5c_108ca3ffab90601dc5184@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-24 08:57:47.140501"], ["updated_at", "2015-11-24 08:57:47.140501"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-24 08:57:47.141858"], ["updated_at", "2015-11-24 08:57:47.141858"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.0ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 7]] NotificationsMailer#send_mail_for: processed outbound mail in 1.1ms Sent mail to user29@sleede.com (1.1ms) Date: Tue, 24 Nov 2015 09:57:47 +0100 From: contact@sleede.com To: user29@sleede.com Message-ID: <5654268b233c7_108ca3ffab90601dc519ca@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:47.145675"], ["updated_at", "2015-11-24 08:57:47.145675"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" WHERE "wupee_notifications"."is_read" = ? [["is_read", "t"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "wupee_notifications"[0m [1m[35mWupee::NotificationTypeConfiguration Load (0.2ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_type" = 'User' AND "wupee_notification_type_configurations"."receiver_id" IN (1, 2, 3, 4) AND "wupee_notification_type_configurations"."notification_type_id" = 1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" IN (1, 2, 3, 4)[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["receiver_id", 1], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:47.149239"], ["updated_at", "2015-11-24 08:57:47.149239"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[36mSQL (0.1ms)[0m [1mUPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ?[0m [["id", 9]] NotificationsMailer#send_mail_for: processed outbound mail in 1.2ms Sent mail to user27@sleede.com (1.3ms) Date: Tue, 24 Nov 2015 09:57:47 +0100 From: contact@sleede.com To: user27@sleede.com Message-ID: <5654268b2517f_108ca3ffab90601dc52089@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["receiver_id", 2], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-24 08:57:47.153432"], ["updated_at", "2015-11-24 08:57:47.153432"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "is_read", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["receiver_id", 3], ["receiver_type", "User"], ["notification_type_id", 1], ["is_read", "t"], ["created_at", "2015-11-24 08:57:47.154800"], ["updated_at", "2015-11-24 08:57:47.154800"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered notifications_mailer/notify_new_message.html.erb (0.0ms) [1m[35mSQL (0.1ms)[0m UPDATE "wupee_notifications" SET "is_sent" = 't' WHERE "wupee_notifications"."id" = ? [["id", 11]] NotificationsMailer#send_mail_for: processed outbound mail in 1.5ms Sent mail to user29@sleede.com (1.2ms) Date: Tue, 24 Nov 2015 09:57:47 +0100 From: contact@sleede.com To: user29@sleede.com Message-ID: <5654268b2686d_108ca3ffab90601dc521dd@MBP-sleede-Nicolas.local.mail> Subject: notify_new_message Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "wupee_notifications" ("receiver_id", "receiver_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["receiver_id", 4], ["receiver_type", "User"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:47.159234"], ["updated_at", "2015-11-24 08:57:47.159234"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (4.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user31@sleede.com"], ["name", "user31"], ["created_at", "2015-11-24 08:57:47.172071"], ["updated_at", "2015-11-24 08:57:47.172071"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [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 "messages" ("body", "created_at", "updated_at") VALUES (?, ?, ?) [["body", "message body"], ["created_at", "2015-11-24 08:57:47.174446"], ["updated_at", "2015-11-24 08:57:47.174446"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = ? LIMIT 1 [["name", "notify_new_message"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.177133"], ["updated_at", "2015-11-24 08:57:47.177133"]] [1m[35m (0.0ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:47.179465"], ["updated_at", "2015-11-24 08:57:47.179465"]] [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 "wupee_notifications" ("receiver_id", "receiver_type", "attached_object_id", "attached_object_type", "notification_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["receiver_id", 1], ["receiver_type", "User"], ["attached_object_id", 1], ["attached_object_type", "Message"], ["notification_type_id", 1], ["created_at", "2015-11-24 08:57:47.180955"], ["updated_at", "2015-11-24 08:57:47.180955"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "wupee_notifications" WHERE "wupee_notifications"."id" = ?[0m [["id", 1]] [1m[35mWupee::NotificationTypeConfiguration Load (0.1ms)[0m SELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ?[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notifications" [1m[36m (0.8ms)[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" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user32@sleede.com"], ["name", "user32"], ["created_at", "2015-11-24 08:57:47.188040"], ["updated_at", "2015-11-24 08:57:47.188040"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'abc' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "abc"], ["created_at", "2015-11-24 08:57:47.190455"], ["updated_at", "2015-11-24 08:57:47.190455"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_type", "receiver_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["notification_type_id", 1], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2015-11-24 08:57:47.193184"], ["updated_at", "2015-11-24 08:57:47.193184"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m SELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::Notification Load (0.0ms)[0m SELECT "wupee_notifications".* FROM "wupee_notifications" WHERE "wupee_notifications"."receiver_id" = ? AND "wupee_notifications"."receiver_type" = ? [["receiver_id", 1], ["receiver_type", "User"]] [1m[36mWupee::NotificationTypeConfiguration Load (0.0ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."receiver_id" = ? AND "wupee_notification_type_configurations"."receiver_type" = ?[0m [["receiver_id", 1], ["receiver_type", "User"]] [1m[35mSQL (0.1ms)[0m DELETE FROM "wupee_notification_type_configurations" WHERE "wupee_notification_type_configurations"."id" = ? [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "wupee_notification_type_configurations"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mWupee::NotificationType Exists (0.2ms)[0m SELECT 1 AS one FROM "wupee_notification_types" WHERE "wupee_notification_types"."name" = 'notify_new_message' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "wupee_notification_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "notify_new_message"], ["created_at", "2015-11-24 08:57:47.203705"], ["updated_at", "2015-11-24 08:57:47.203705"]] [1m[35m (0.1ms)[0m SELECT "users"."id" FROM "users" [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "user33@sleede.com"], ["name", "user33"], ["created_at", "2015-11-24 08:57:47.206549"], ["updated_at", "2015-11-24 08:57:47.206549"]] [1m[36m (0.1ms)[0m [1mSELECT "wupee_notification_types"."id" FROM "wupee_notification_types"[0m [1m[35mWupee::NotificationType Load (0.0ms)[0m SELECT "wupee_notification_types".* FROM "wupee_notification_types" WHERE "wupee_notification_types"."id" = ? LIMIT 1 [["id", 1]] [1m[36mWupee::NotificationTypeConfiguration Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "wupee_notification_type_configurations" WHERE ("wupee_notification_type_configurations"."notification_type_id" = 1 AND "wupee_notification_type_configurations"."receiver_id" = 1) LIMIT 1[0m [1m[35mSQL (2.9ms)[0m INSERT INTO "wupee_notification_type_configurations" ("notification_type_id", "receiver_id", "receiver_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["notification_type_id", 1], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2015-11-24 08:57:47.209907"], ["updated_at", "2015-11-24 08:57:47.209907"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "wupee_notification_type_configurations" [1m[36mWupee::NotificationTypeConfiguration Load (0.3ms)[0m [1mSELECT "wupee_notification_type_configurations".* FROM "wupee_notification_type_configurations" ORDER BY "wupee_notification_type_configurations"."id" DESC LIMIT 1[0m [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction